Help replacing ULL to eliminate pedantic error that ULL is C99
John Love-Jensen
eljay@adobe.com
Thu Apr 5 14:22:00 GMT 2007
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
More information about the Gcc-help
mailing list