From a9f752e0344f179f2f4b690de311f6a86297feff Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Wed, 28 Sep 2016 20:52:41 +0700 Subject: [PATCH] reformatting: print_value: 255 -> 0xFF --- cJSON.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cJSON.c b/cJSON.c index b2ba100..5c0c469 100644 --- a/cJSON.c +++ b/cJSON.c @@ -909,7 +909,7 @@ static char *print_value(cJSON *item, int depth, int fmt, printbuffer *p) } if (p) { - switch ((item->type) & 255) + switch ((item->type) & 0xFF) { case cJSON_NULL: out = ensure(p, 5); @@ -948,7 +948,7 @@ static char *print_value(cJSON *item, int depth, int fmt, printbuffer *p) } else { - switch ((item->type) & 255) + switch ((item->type) & 0xFF) { case cJSON_NULL: out = cJSON_strdup("null"); -- GitLab