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

warning: integer overflow in expression (take this as a lesson)

时间:2015-01-26 11:58:28      阅读:309      评论:0      收藏:0      [点我收藏+]

标签:

#define QUOTA (5*1024*1024*1024)
uint64_t ui64 = QUOTA;


gcc编译器会报出:warning: integer overflow in expression,你发现哪里出问题了?以此为戒!

warning: integer overflow in expression (take this as a lesson)

标签:

原文地址:http://blog.csdn.net/demiaowu/article/details/43149833

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