Fix ValueVector read type error.

This commit is contained in:
zhangcheng 2016-02-16 17:01:54 +08:00
parent 53cbc2d32b
commit 2b1511096e
1 changed files with 2 additions and 1 deletions

View File

@ -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)
{