Re: Strange enum type conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/3/09, Hajo Münzer <hans-joachim.muenzer@xxxxxx> wrote:
>In the following
> enum's (see code below) the en1 and en2 are converted to a 64 bit type
> ("long long int" in i686 GNU/Linux or "long int" in x86_64 GNU/Linux).

Perhaps the confusing thing is that en1 is a constant compatible with int
(-2^31), but en2 is a constant compatible with long lont int (in the
32 bit case).

Actually, the standard requires that all values be representable with plain int,
so the code is probably invalid.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux