diff options
Diffstat (limited to 'ext/json/parser/parser.c')
-rw-r--r-- | ext/json/parser/parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/json/parser/parser.c b/ext/json/parser/parser.c index b6cf93fcb8..09ca4f75ab 100644 --- a/ext/json/parser/parser.c +++ b/ext/json/parser/parser.c @@ -422,7 +422,7 @@ static const rb_data_type_t JSON_Parser_type; static char *JSON_parse_string(JSON_Parser *json, char *p, char *pe, VALUE *result); static char *JSON_parse_object(JSON_Parser *json, char *p, char *pe, VALUE *result, int current_nesting); static char *JSON_parse_value(JSON_Parser *json, char *p, char *pe, VALUE *result, int current_nesting); -static char *JSON_parse_float(JSON_Parser *json, char *p, char *pe, VALUE *result); +static char *JSON_parse_number(JSON_Parser *json, char *p, char *pe, VALUE *result); static char *JSON_parse_array(JSON_Parser *json, char *p, char *pe, VALUE *result, int current_nesting); @@ -1149,7 +1149,7 @@ tr3: raise_parse_error("unexpected token at '%s'", p); } } - np = JSON_parse_float(json, p, pe, result); + np = JSON_parse_number(json, p, pe, result); if (np != NULL) { {p = (( np))-1;} } @@ -1531,7 +1531,7 @@ enum {JSON_float_en_main = 1}; #line 742 "parser.rl" -static char *JSON_parse_float(JSON_Parser *json, char *p, char *pe, VALUE *result) +static char *JSON_parse_number(JSON_Parser *json, char *p, char *pe, VALUE *result) { int cs = EVIL; bool is_float = false; |