casting on 64/32-bit environment
Tim Prince
tprince@computer.org
Fri Oct 12 13:33:00 GMT 2007
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.
More information about the Gcc-help
mailing list