Re: Help replacing ULL to eliminate pedantic error that ULL is C99

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

 



Hi Stephen,

> I have a c++ program that has some 64-bit constants. How can I replace
> ULL in my code so that I can tell g++ that the constants are 64-bits
> long when I use the -ansi -pedantic flags?

Use the -Wno-long-long flag as well.

Also, perhaps, consider using/adapting C99's <stdint.h> facilities:

uint64_t i = UINT64_C(0x00ff000000000000);

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