From: James Myatt Date: Thu, 5 Feb 2015 15:57:14 +0000 (+0000) Subject: json_tokener requires INF and NAN X-Git-Tag: json-c-0.13-20171207~193^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9be71700eb580c815688584a64621a38867c3fdd;p=thirdparty%2Fjson-c.git json_tokener requires INF and NAN --- diff --git a/json_tokener.c b/json_tokener.c index d9e9e246..8b1e3e6d 100644 --- a/json_tokener.c +++ b/json_tokener.c @@ -16,6 +16,7 @@ #include "config.h" #include +#include "math_compat.h" #include #include #include @@ -353,7 +354,7 @@ struct json_object* json_tokener_parse_ex(struct json_tokener *tok, case json_tokener_state_inf: /* aka starts with 'i' */ { - int size_inf; + size_t size_inf; int is_negative = 0; printbuf_memappend_fast(tok->pb, &c, 1);