help-gplusplus
[Top][All Lists]
Advanced

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

long long integer constants


From: Chen, Kuangming-Kwan (SD-EX)
Subject: long long integer constants
Date: Tue, 28 May 2002 13:05:58 -0400

g++ gave me an "integer constant out of range" error on the following line:

y = 0xFFFFFFFFFFFFFF00; // 14 F's followed by 2 0's

where y is declared as: unsigned long long.

I printed out the size of y and it's 8 bytes. I don't know why this is an
error. 
I'm running Solaris 2.8 on Sparc. Note the same line is working fine on Red
Hat Linux 7.1.

Any ideas?

-KC






reply via email to

[Prev in Thread] Current Thread [Next in Thread]