[lkml]   [2003]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] ULL fixes for qlogicfc
Jeff Garzik wrote:
> H. Peter Anvin wrote:
>> 0xffffffff is unsigned int and will be promoted to
> 0xffffffff without a prefix is signed.

No, it's not.

ISO/IEC 9899:1999(E) §, page 55f:

5 The type of an integer constant is the first of the corresponding list
in which its value can be represented.

Suffix Decimal Constant Octal or Hexadecimal

none int int
long int unsigned int
long long int long int
unsigned long int
long long int
unsigned long long int

... so 0x7fffffff is signed int, but 0xffffffff is unsigned int on an
I32-model system (all Linux systems are I32-model.)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:49    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean