Re: 0xdeadbeef vs 0xdeadbeefL

From: H. Peter Anvin
Date: Mon Jul 12 2004 - 12:57:26 EST


Followup to: <20040707073059.GA20079@xxxxxxxxxxxxxxxxxxxxxx>
By author: Tomas Szepe <szepe@xxxxxxxxxxxxxxx>
In newsgroup: linux.dev.kernel
>
> On Jul-06 2004, Tue, 19:05 -0700
> Ray Lee <ray-lk@xxxxxxxxxxxxx> wrote:
>
> > According to K&R, 2nd ed, section A2.5.1 (Integer Constants):
> >
> > The type of an integer depends on its form, value and suffix.
> > [...] If it is unsuffixed octal or hexadecimal, it has the first
> > possible of these types ["in which its value can be represented"
> > -- from omitted]: int, unsigned int, long int, unsigned long
> > int.
>
> Is it safe to assume that C99 compilers append "..., long long int,
> unsigned long long int" to the list?
>

Yes.

-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/