Re: long long constant

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

 



Hi Vincent,

Both long long, and long long numeric literals, are extensions.

A long long numeric literal requires the LL suffix. The compiler doesn't automagically promote "too big" numeric literals into long longs.

My recommendation is to rely upon the 5 year old C99 header file <stdint.h> (even in C++), and use their facilities.

#include <stdint.h>
static int64_t const rounder = INT64_C(0x0000400000004000);

HTH,
--Eljay


[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