This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: cast to pointer from integer of different size
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Ian Lance Taylor'" <iant at google dot com>, "'Jack Howarth'" <howarth at bromo dot msbb dot uc dot edu>
- Cc: <gcc at gcc dot gnu dot org>, <bergner at vnet dot ibm dot com>
- Date: Fri, 22 Sep 2006 16:56:25 +0100
- Subject: RE: cast to pointer from integer of different size
On 22 September 2006 16:01, Ian Lance Taylor wrote:
> howarth@bromo.msbb.uc.edu (Jack Howarth) writes:
>
>> Looking at the libffi/src/powerpc/ffi.c file, I assume that I should
>> have the same...
>>
>> *next_arg++ = (unsigned long)(char *)ecif->rvalue;
>
> Sure looks like you want uintptr_t there. I think using "unsigned
> long" is just setting yourself up for failure on some future system.
64 bits ought to be enough for anybody! </famouslastwords>
;-)
cheers,
DaveK
--
Can't think of a witty .sigline today....