This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
long long constant
- From: Vincent Torri <torri at math dot u-strasbg dot fr>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 18 Jun 2004 00:40:19 +0200 (MEST)
- Subject: 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