This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Is this warning valid?


Hi,

# gcc -c x.c
x.c:1: warning: decimal constant is so large that it is unsigned

Why does gcc complain this? Does gcc think

	-2147483648 != (-2147483647 -1)

Thanks.


-- 
H.J. Lu (hjl@gnu.org)
--x.c---
int i = -2147483648;
int j = -2147483647 -1;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]