From 069d6d1d9c0d576f6861ad69f29f59829239c04b Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 2 Nov 2022 11:46:00 -0700 Subject: [PATCH] json: update internal type definition to match JSMN Fixes: ceda955ba7 ("shared: Update JSMN to latest version") --- src/json.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/json.h b/src/json.h index c6220667..713ab56f 100644 --- a/src/json.h +++ b/src/json.h @@ -27,10 +27,10 @@ struct json_iter; */ enum json_type { JSON_UNDEFINED = 0, - JSON_OBJECT = 1, - JSON_ARRAY = 2, - JSON_STRING = 3, - JSON_PRIMITIVE = 4 + JSON_OBJECT = 1 << 0, + JSON_ARRAY = 1 << 1, + JSON_STRING = 1 << 2, + JSON_PRIMITIVE = 1 << 3, }; enum json_flag {