Argument value 10880 is outside the valid range [0, 255]

cocos2dx/external/bullet/LinearMath/btMatrix3x3.h:861:17: error: argument value 10880 is outside the valid range [0, 255]

解决方案:在btVector3.h头文件修改BT_SHUFFLE 宏定义

原始代码:

1
#define BT_SHUFFLE(x,y,z,w) ((w)<<6 | (z)<<4 | (y)<<2 | (x))

修改后为:

1
#define BT_SHUFFLE(x, y, z, w) (((w) << 6 | (z) << 4 | (y) << 2 | (x)) & 0xff)