From: Eric Hawicz Date: Sat, 23 Sep 2023 02:26:21 +0000 (-0400) Subject: Take 2 fixing the placement of json_tokener_error_memory in the enum. (json_tokener_... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fjson-c-0.17;p=thirdparty%2Fjson-c.git 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!) --- 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 */ }; /**