long long constant

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

 



Hello

i have experienced weird behavior with the initialization of a constant : 

static long long const rounder = 0x0000400000004000;

on gcc 2.96, no error or warning
on gcc 3.3.1 or 3.3.2 or 3.3.4 there's a warning or an error

If i change the initialization above by
static long long const rounder = 0x0000400000004000LL;

it works

could someone explain me why ? 

espacially, is there some known problems with initializing lonng constants
with gcc 3.3.x ?

Thank you

Vincent TORRI



[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