首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

GCC出现warning: integer constant is too large for 'long' type"

2012-10-24 
GCC出现warning: integer constant is too large for long typeThe warning message can be safely ign

GCC出现warning: integer constant is too large for 'long' type"

The warning message can be safely ignored, as mb-gcc is not doing anything wrong; the 64-bit computing is in fact correct.

This warning occurs because gcc is strict in syntax and requires LL on the end of such constants. This warning message disappears if the integer is appended with LL.

long long int test = 0x0008888000000000LL;

http://mazaoliang.blog.163.com/blog/static/138455093201151603823383/


热点排行