Don't change `int` to `long`. Please refer to this thread: http://www.cocos2d-x.org/forums/6/topics/39953?page=1.