lkml.org 
[lkml]   [2004]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: 0xdeadbeef vs 0xdeadbeefL
From
Date
On Jul  7, 2004, viro@parcelfarce.linux.theplanet.co.uk wrote:

> On Tue, Jul 06, 2004 at 07:05:01PM -0700, Ray Lee wrote:
>> [1] "The great thing about standards is that there are so many
>> of them to choose from." Wish I could remember who said
>> that.

> AST and in this case it actually doesn't apply - everything from K&R
> to C99 is in agreement here.

Are you sure? I've seen K&R C compilers for 32-bit platforms in which
0xdeadbeef had type *signed* int, as opposed to unsigned int. I
thought the preference for an unsigned type in this case was
introduced in ISO C90, but it might as well have been a bug in that
compiler. Although I'm told other compilers display similar behavior.

--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.677 / U:0.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site