【发布时间】:2013-04-19 09:04:02
【问题描述】:
我想知道 C 中是否有一个等效于 int64_t 的函数,它可以在 32 位和 64 位平台上运行,即 ansi 和 pedantic gcc 模式合规。
我发现这个 post 很有趣,但它与 C++ 相关。
我尝试使用long long,但收到integer overflow in expression [-WOverflow] 错误。此外,ISO C90 不支持long long。
我也尝试了post 中的建议,但使用int64_t 时仍然出现-WOverflow 错误
有什么解决办法吗?
【问题讨论】:
标签: c 64-bit int portability