This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++ unsigned warning
- From: Richard Henderson <rth at redhat dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: gcc-bugs at gcc dot gnu dot org, jason at redhat dot com
- Date: Mon, 26 Nov 2001 22:06:41 -0800
- Subject: Re: g++ unsigned warning
- References: <Pine.SOL.3.91.1011125225002.6340B-100000@taarna.cygnus.com>
[Get raw message]
On Sun, Nov 25, 2001 at 10:50:46PM -0800, Benjamin Kosnik wrote:
> unsigned long ul1 = 4294967294;
[...]
> ?? What's the deal? It already is unsigned.
No, ul1 is already unsigned, not the number. Try
unsigned long ul1 = 4294967294ul;
r~