xcode更新到5.1,"Cast from pointer to smaller type 'int' loses information” in EAGLView.mm
最近把xcode更新到5.1版本后,运行xcode的cocos2dx项目出现以下错误:
EAGLView.mm
ids[i] = (int)touch; //error : Cast from pointer to smaller type 'int' loses information
改称:ids[i] = (uintptr_t)touch;
问题就解决了,
转发自http://blog.csdn.net/qiang12200/article/details/23205049