On Sun, 23 Jan 2005, Linus Torvalds wrote:
> 
> And what about a number that looks very similar: 0x80000000. What do you
> think that one is? Or the same number written a different way: 2147483648.

Btw, you can get real differences from this. It's extremely uncommon, but 
try it:

        #define A 0x80000000
        #define B 2147483648

        int a(void)
        {
                return A == B;
        }

        int b(void)
        {
                return A+A == B+B;
        }

and see how one of them is false in 64-bits, even though the numbers are
"the same". Things like this can happen with numbers that are used in 
macros.

                Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to