diff --git a/cocos/platform/apple/CCFileUtils-apple.mm b/cocos/platform/apple/CCFileUtils-apple.mm index f34306c0ca..789fc39a60 100644 --- a/cocos/platform/apple/CCFileUtils-apple.mm +++ b/cocos/platform/apple/CCFileUtils-apple.mm @@ -60,7 +60,8 @@ static void addItemToArray(id item, ValueVector& array) const char* numType = [num objCType]; if(num == (void*)kCFBooleanFalse || num == (void*)kCFBooleanTrue) { - array.push_back(Value([num boolValue])); + bool v = [num boolValue]; + array.push_back(Value(v)); } else if(strcmp(numType, @encode(float)) == 0) {