首页 > 其他 > 详细

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

时间:2014-07-16 15:36:48      阅读:884      评论:0      收藏:0      [点我收藏+]

时间  :2014-7-11 11:38  调试iHealthGateway和云通信时发现问题 (时间戳TS)
问题:Linux编译时候定义了一个unint64_t = 1405043216129 (64位unsigned long long int 取值范围之内)
           但编译的时候总是出现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.

Fox:uint64_t Time =  1405043216129LL
          pJsonObj       =  GatewayConfigInfoContent(Time);     //该函数是获取网关配置时打包的实体内容,需要参数TS 

warning: integer constant is too large for 'long' type",布布扣,bubuko.com

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

原文:http://www.cnblogs.com/lvchunhao/p/3848162.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!