RE: [GD-General] meaning of sizeof(int) on all plateform
Brought to you by:
vexxed72
From: Ivan-Assen I. <as...@ha...> - 2003-06-27 09:31:18
|
> On 64bit windows, int is 64bit=>8 bytes. It's the > size of the memory address. Wrong! MSDN states that on Win64, sizeof(int)==4, sizeof(long)==4 (in the interest of keeping most code working), but sizeof(void *)==8. So code that assumes you can store a pointer in the memory for the int will need to be reworked. Microsoft have made the (IMO correct) assumption that the most important benefit of a 64-bit platform is not integer calculation with 64 bits, but rather, 64-bit addressing. |