public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 0xdeadbeef vs 0xdeadbeefL
@ 2004-07-06 21:56 David Eger
  2004-07-07  0:06 ` tom st denis
  2004-07-07  0:38 ` Richard B. Johnson
  0 siblings, 2 replies; 29+ messages in thread
From: David Eger @ 2004-07-06 21:56 UTC (permalink / raw)
  To: linux-kernel

Is there a reason to add the 'L' to such a 32-bit constant like this?
There doesn't seem a great rhyme to it in the headers...

-dte

^ permalink raw reply	[flat|nested] 29+ messages in thread
* Re: Prohibited attachment type (was 0xdeadbeef)
@ 2004-07-07 15:57 Ray Lee
  0 siblings, 0 replies; 29+ messages in thread
From: Ray Lee @ 2004-07-07 15:57 UTC (permalink / raw)
  To: tomstdenis; +Cc: Linux Kernel

On Wed, Jul 07, 2004 at 04:48:36AM -0700, tom st denis wrote:
> It will warn that 0xDEADBEEF is unsigned (which it isn't).

It is. Either read the standard, or read any of my email messages where
I quote the thing at you.

> Either there is an obscure clause in the C standard

Duuuude. The ANSI C standard is about 40 pages in the back of the K&R
second edition. You could read through it in a few hours. If you're
writing C code for more than just a pastime, you should do yourself a 
favor and read it. It's really not all that obscure or hard to
understand.

> [I personally don't have a copy of C99 nor do I plan on reading it
> for this]

Then how about you listen to people who have it, read it, and understand
it? Or how about at least believing that gcc is telling you the truth
when it warns that 0xdeadbeef is an unsigned constant?

Ray


^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2004-07-10  1:51 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-06 21:56 0xdeadbeef vs 0xdeadbeefL David Eger
2004-07-07  0:06 ` tom st denis
2004-07-07  3:00   ` viro
2004-07-07 11:10     ` tom st denis
2004-07-07 11:18       ` Prohibited attachment type (was 0xdeadbeef) Richard B. Johnson
2004-07-07 11:48         ` tom st denis
2004-07-07 12:29           ` Jakub Jelinek
2004-07-08  5:52             ` Pavel Machek
2004-07-08 14:03               ` Jakub Jelinek
2004-07-07 12:13         ` R. J. Wysocki
2004-07-07 14:22       ` 0xdeadbeef vs 0xdeadbeefL viro
2004-07-07 18:47         ` tom st denis
2004-07-07 16:30       ` Gabriel Paubert
2004-07-07 18:41         ` tom st denis
2004-07-07 18:47           ` Christoph Hellwig
2004-07-07 18:53             ` tom st denis
2004-07-07 23:17               ` Harald Arnesen
2004-07-08  6:15               ` David Weinehall
2004-07-08  9:32               ` [OT] " Gabriel Paubert
2004-07-08 11:15                 ` viro
2004-07-08 11:55                   ` Gabriel Paubert
2004-07-08 16:41                   ` Andries Brouwer
2004-07-08 17:13                     ` Michael Driscoll
2004-07-08 17:16           ` Horst von Brand
2004-07-10  1:52           ` Andrew Rodland
2004-07-07  0:38 ` Richard B. Johnson
2004-07-07  4:52   ` David Eger
2004-07-07 11:40     ` Richard B. Johnson
  -- strict thread matches above, loose matches on Subject: below --
2004-07-07 15:57 Prohibited attachment type (was 0xdeadbeef) Ray Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox