]> granicus.if.org Git - json-c/commitdiff
json_tokener requires INF and NAN
authorJames Myatt <james.myatt@tessella.com>
Thu, 5 Feb 2015 15:57:14 +0000 (15:57 +0000)
committerJames Myatt <james.myatt@tessella.com>
Wed, 4 Mar 2015 10:45:35 +0000 (10:45 +0000)
json_tokener.c

index d9e9e246117a99304bc87bb71359288c9dea1bd7..8b1e3e6dc2ac14006411f726cd4581fb75658619 100644 (file)
@@ -16,6 +16,7 @@
 #include "config.h"
 
 #include <math.h>
+#include "math_compat.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <stddef.h>
@@ -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);