Fix boolean comparisions

This commit is contained in:
Eric Fischer 2017-08-28 14:08:05 -07:00
parent 8d7f8af1d9
commit 4e1611eec9

View File

@ -51,7 +51,7 @@ int compare(mvt_value one, json_object *two, bool &fail) {
return false; // bool vs non-bool
}
bool b = two->type = JSON_TRUE;
bool b = two->type != JSON_FALSE;
return one.numeric_value.bool_value > b;
}