Re: casting on 64/32-bit environment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mitja Ursic wrote:
> Hello,
> 
> Compiling of a cc program with g++ on 64-bit environment gives me a warning of 
> a type “Warning: cast from pointer to integer of different size” on a place 
> were casting really takes place. If I compile the same program on 32-bit 
> environment I don’t have warning anymore.
> Dose anyone have a reasonable explanation about that?

The usual meaning of the term 64-bit is that sizeof pointer storage is
increased, compared with 32-bit.  So it should hardly be a surprise when
this happens to non-portable code.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux