public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* long long constant
@ 2004-06-17 22:40 Vincent Torri
  2004-06-18 12:08 ` Eljay Love-Jensen
  0 siblings, 1 reply; 5+ messages in thread
From: Vincent Torri @ 2004-06-17 22:40 UTC (permalink / raw)
  To: gcc-help


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-06-18 20:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-17 22:40 long long constant Vincent Torri
2004-06-18 12:08 ` Eljay Love-Jensen
2004-06-18 12:32   ` Falk Hueffner
2004-06-18 13:08     ` Eljay Love-Jensen
2004-06-18 20:48       ` Vincent Torri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).