This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cast to pointer from integer of different size


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.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]