* sparse considers LONG_MAX too big for long on x86-64
@ 2011-08-25 3:22 Josh Triplett
0 siblings, 0 replies; only message in thread
From: Josh Triplett @ 2011-08-25 3:22 UTC (permalink / raw)
To: linux-sparse
sizeof(long) == 8 on x86-64, but sparse thinks LONG_MAX needs a long long:
/tmp$ uname -a
Linux leaf 3.0.0-1-amd64 #1 SMP Wed Aug 17 04:08:52 UTC 2011 x86_64 GNU/Linux
/tmp$ cat test.c
#include <limits.h>
#if LONG_MAX < 0
#endif
/tmp$ sparse test.c
test.c:2:5: warning: constant 9223372036854775807L is so big it is long long
/tmp$ cgcc -c test.c -o /dev/null
test.c:2:5: warning: constant 9223372036854775807L is so big it is long long
/tmp$ echo $((2**63 - 1))
9223372036854775807
- Josh Triplett
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-25 3:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-25 3:22 sparse considers LONG_MAX too big for long on x86-64 Josh Triplett
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.