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]
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~


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