Xcode更新到5.1,"Cast from pointer to smaller type 'int' loses information” in EAGLView.mm
来源:互联网 发布:淘宝客贴吧 编辑:程序博客网 时间:2024/05/16 11:12
编译Cocos2dx时,在EAGLView.mm中
代码:
for (UITouch *touch in touches) {
ids[i] = (uintptr_t)touch;//(int)touch;//在这里int会出错,将其改为uintptr_t即可通过
xs[i] = [touch locationInView: [touch view]].x * view.contentScaleFactor;;
ys[i] = [touch locationInView: [touch view]].y * view.contentScaleFactor;;
++i;
}
0 0
- xcode更新到5.1,"Cast from pointer to smaller type 'int' loses information” in EAGLView.mm
- xcode更新到5.1,"Cast from pointer to smaller type 'int' loses information” in EAGLView.mm
- Xcode更新到5.1,"Cast from pointer to smaller type 'int' loses information” in EAGLView.mm
- Cast from pointer to smaller type 'int' loses information
- Cast from pointer to smaller type 'int' loses information
- Cast from pointer to smaller type 'int' loses information解决方案
- Xcode错误"Cast from pointer to smaller type 'int' loses information”
- iOS开发 - "Cast from pointer to smaller type 'int' loses information” 解决办法
- iOS开发 - "Cast from pointer to smaller type 'int' loses information” 解决办法
- iOS开发 - "Cast from pointer to smaller type 'int' loses information” 解决办法
- Cast from pointer to smaller type 'int' loses
- cast from 'void *' to 'int' loses precision
- error: cast from ‘char*’ to ‘int’ loses precision
- error: cast from ‘void*’ to ‘int’ loses precision
- error: cast from ‘char*’ to ‘int’ loses precision
- x86_64 xercexc: error: cast from 'const void*' to 'long int' loses precision [-fpermissive]
- 关于Linux下C编译错误(警告)cast from 'void*' to 'int' loses precision
- 关于Linux下C编译错误(警告)cast from 'void*' to 'int' loses precision
- Node.js学习笔记6【express--hello world】
- 一站式学习Wireshark(四):网络性能排查之TCP重传与重复ACK
- . 在C++ Builder 5环境中建立新工程文件
- sublime Text3编译lua
- Amoeba搞定mysql主从读写分离
- Xcode更新到5.1,"Cast from pointer to smaller type 'int' loses information” in EAGLView.mm
- VC++实现枚举进程与模块
- Interpolation
- 【引导系统启动失败的BIOS信息提示】
- 用 C 实现 WebService
- C++ Builder是一个可视化快速应用程序开发工具
- android中json解析及使用 (下)
- 数据库hang优化一则
- hdu4848 DFS 暴搜+ 强剪枝