cJSON_Invalid insted of just 0

This commit is contained in:
Stoian Ivanov 2022-01-05 01:04:09 +02:00
parent ef55a19de1
commit 6fc795c85b

View File

@ -283,7 +283,7 @@ CJSON_PUBLIC(char*) cJSON_SetValuestring(cJSON *object, const char *valuestring)
#define cJSON_SetBoolValue(object, boolValue) ( \
(object != NULL && ((object)->type & (cJSON_False|cJSON_True))) ? \
(object)->type=((object)->type &(~(cJSON_False|cJSON_True)))|((boolValue)?cJSON_True:cJSON_False) : \
0\
cJSON_Invalid\
)
/* Macro for iterating over an array or object */