64位Fedora运行32位C++程序中int精度溢出处理
2011-09-08 18:49
211 查看
在64-bit机器中编译32-bit的代码出现int(强制转换而至)精度溢出:
Debug:
Solution:
修改数据类型:将int -->intptr_t
Reference:
http://stackoverflow.com/questions/2024895/how-should-i-handle-cast-from-void-to-int-loses-precision-when-compiling-3
Debug:
error: cast from ‘void*’ to ‘int’ loses precision
Solution:
修改数据类型:将int -->intptr_t
Reference:
http://stackoverflow.com/questions/2024895/how-should-i-handle-cast-from-void-to-int-loses-precision-when-compiling-3
相关文章推荐
- 64位Fedora运行32位C++程序中int精度溢出处理
- 64位Fedora运行32位C++程序所需的类库
- 64位Fedora运行32位C++程序所需的类库
- 64位Fedora运行32位C++程序所需的类库
- 要特别注意数据是否溢出,另外,int是16位,long是32位,而long long才是64位int
- 64位Fedora运行32位C++程序所需的类库
- 64为操作系统,64位IIS,运行32位应用程序的问题
- 32位和64位系统区别及int字节数
- 32位应用程序在win7 64位中运行 控件注册问题
- 64位操作系统的IIS运行32位站点
- 64位 linux操作系统下如何编译和运行32位源码
- 64位Linux(ubuntu)安装、运行32位程序
- 缺失Dll也能运行!PHP环境神器,无限自定义,全自动匹配32位和64位系统
- 32位和64位系统区别及int字节数
- 64位的windows server 2003运行IIS6运行32位的.NET程序
- ubuntu 64位系统运行32位应用
- 解决.NET 32位程序运行在64位操作系统下的兼容性问题
- ORA-06553: PLS-801: internal error [56319],64位oracle降级为32位的处理
- 32位和64位系统区别及int字节数
- 32位int和64位int