From ddd93934e6fc8afa9047333b43b4ef67e4afb764 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Sun, 25 Mar 2018 15:12:15 +0200 Subject: [PATCH] cJSON: cjson_min: Wrap arguments in parentheses --- cJSON.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cJSON.c b/cJSON.c index 89de6f6..412a250 100644 --- a/cJSON.c +++ b/cJSON.c @@ -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) {