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.