long long a=-9223372036854775808ll; int b=-2147483648; test2.cpp:1:14: warning: integer constant is so large that it is unsigned it is not. test2.cpp:1: warning: this decimal constant is unsigned only in ISO C90 test2.cpp:2: warning: this decimal constant is unsigned only in ISO C90 huh? unsigned? example with sizeof(int) == 4 && sizeof(long long) == 8
No, the warning is correct - is an operator and not part of the number,