Re: unsigned

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> What's going on?

Hi Trevis,

2147483648 is too big to fit in a signed int on your machine (32-bit signed
int).  So the compiler is treating it as 2147483648U, even though you did
not specify 2147483648U.

Note: 2147483648 is 0x80000000 which is one bigger than the largest 32-bit
signed int.  Not just "no room to spare", but one step beyond.

HTH,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux