HP3000-L Archives

August 2000, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Walter Murray <[log in to unmask]>
Reply To:
Walter Murray <[log in to unmask]>
Date:
Thu, 24 Aug 2000 13:56:16 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (20 lines)
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

ATOM RSS1 RSS2