Found it: http://en.wikipedia.org/wiki/64-bit_computing#64-bit_data_models I think your literal is being truncated to 32 bits on Windows (before being assigned to __int64), because long int is 32 bits :>