Re:Subtraction is not comparison
by Sharlin on Friday December 26, 2014 @11:25AM
(#8799194)
In mainstream compilers, even on x64, sizeof(long) == sizeof(int). You need long long instead. Of course, in the general case there's exactly zero guarantee that there even exists an integral type wider than int.
[ Parent
| on HN ]
The C99 language standard requires support for long long.
But an implementation where sizeof(int) == sizeof(long) == sizeof(long long) is allowed by the specification.