Ken Graham ([log in to unmask]) wrote:
: A ((long long)fcp)++, where fcp is 'char ^fcp', only affects the lower 32
: bits.
: A union was required to implement effectively an fcp++.
A ((long long)fcp)++ is not valid C, and the C/iX compiler won't
accept it. The operand of an increment operator must be a
modifiable lvalue.
If you want to use a cast to force an increment operation to act
on all 64 bits of a long pointer, the following should do the
trick:
(*(long long *)&fcp)++
Walter Murray
Hewlett-Packard
HP C/iX