From 7fb43410af1efe76b37582536c114ace8b88ae27 Mon Sep 17 00:00:00 2001 From: Eric Hawicz Date: Fri, 22 Sep 2023 22:26:21 -0400 Subject: [PATCH] Take 2 fixing the placement of json_tokener_error_memory in the enum. (json_tokener_error_size is an actual error, *not* a measure of the size of the enum!) --- json_tokener.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/json_tokener.h b/json_tokener.h index 77abc5c1..cdac3e2a 100644 --- a/json_tokener.h +++ b/json_tokener.h @@ -40,8 +40,8 @@ enum json_tokener_error json_tokener_error_parse_string, json_tokener_error_parse_comment, json_tokener_error_parse_utf8_string, - json_tokener_error_memory, - json_tokener_error_size + json_tokener_error_size, /* A string longer than INT32_MAX was passed as input */ + json_tokener_error_memory /* Failed to allocate memory */ }; /** -- 2.39.5