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

来源:互联网 发布:mac os最新系统 编辑:程序博客网 时间:2024/03/29 16:42
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;


原创粉丝点击