This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g++ unsigned warning
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: gcc-bugs at gcc dot gnu dot org, jason at redhat dot com
- Date: Sun, 25 Nov 2001 22:50:46 -0800 (PST)
- Subject: g++ unsigned warning
[Get raw message]
on x86/linux with current:
unsigned long ul1 = 4294967294;
unsigned.cc:1: warning: decimal constant is so large that it is unsigned
other platforms with:
#include <limits>
unsigned long ul1 = std::numeric_limits<unsigned long>::max();
?? What's the deal? It already is unsigned.
-benjamin