This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++ unsigned warning
- From: Gabriel Dos Reis <gdr at codesourcery 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: 26 Nov 2001 12:48:26 +0100
- Subject: Re: g++ unsigned warning
- Organization: CodeSourcery, LLC
- References: <Pine.SOL.3.91.1011125225002.6340B-100000@taarna.cygnus.com>
[Get raw message]
Benjamin Kosnik <bkoz@redhat.com> writes:
| other platforms with:
|
| #include <limits>
| unsigned long ul1 = std::numeric_limits<unsigned long>::max();
How? I carefully took care to make the constants unsigned,
either with a suffix or with an explicit cast.
-- Gaby