码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2014-07-16 15:37:18      阅读:245      评论:0      收藏:0      [点我收藏+]

标签:style   color   width   2014   for   问题   

时间  :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"

标签:style   color   width   2014   for   问题   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!