This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

Re: g++ unsigned warning

[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


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