This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

long long constant


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]