Yes, 'long long' is the proper 64-bit integer type. 'long' is 32-bit under Windows/MSVC.