9 ms·
That might not be enough. On 64-bit linux, both int and long are 32 bits.
by ufo 5y ago
That might not be enough. On 64-bit linux, both int and long are 32 bits.
- adrian_b 5y agoYou meant on 64-bit Windows. On most 64-bit UNIX-like systems, long is the same with long long.
- mark-r 5y agoMicrosoft are the kings of backward compatibility. Since long has been 32 bits for the last 20 years, it shall remain so until the end of time. Linux compilers are free to be a little more pragmatic. The standards are flexible enough to allow either behavior.