cJSON: cjson_min: Wrap arguments in parentheses

This commit is contained in:
Max Bruckner 2018-03-25 15:12:15 +02:00
parent 1f4044a707
commit fd5281bdd8

View File

@ -1077,7 +1077,7 @@ CJSON_PUBLIC(cJSON *) cJSON_Parse(const char *value)
return cJSON_ParseWithOpts(value, 0, 0);
}
#define cjson_min(a, b) ((a < b) ? a : b)
#define cjson_min(a, b) (((a) < (b)) ? (a) : (b))
static unsigned char *print(const cJSON * const item, cJSON_bool format, const internal_hooks * const hooks)
{