@@ -420,7 +420,7 @@ static const rb_data_type_t JSON_Parser_type;
420
420
static char *JSON_parse_string(JSON_Parser *json, char *p, char *pe, VALUE *result);
421
421
static char *JSON_parse_object(JSON_Parser *json, char *p, char *pe, VALUE *result, int current_nesting);
422
422
static char *JSON_parse_value(JSON_Parser *json, char *p, char *pe, VALUE *result, int current_nesting);
423
- static char *JSON_parse_float (JSON_Parser *json, char *p, char *pe, VALUE *result);
423
+ static char *JSON_parse_number (JSON_Parser *json, char *p, char *pe, VALUE *result);
424
424
static char *JSON_parse_array(JSON_Parser *json, char *p, char *pe, VALUE *result, int current_nesting);
425
425
426
426
@@ -626,7 +626,7 @@ static char *JSON_parse_object(JSON_Parser *json, char *p, char *pe, VALUE *resu
626
626
raise_parse_error("unexpected token at '%s'", p);
627
627
}
628
628
}
629
- np = JSON_parse_float (json, fpc, pe, result);
629
+ np = JSON_parse_number (json, fpc, pe, result);
630
630
if (np != NULL) {
631
631
fexec np;
632
632
}
@@ -741,7 +741,7 @@ static char *JSON_decode_integer(JSON_Parser *json, char *p, VALUE *result)
741
741
) (^[0-9Ee.\-]? @exit ));
742
742
}%%
743
743
744
- static char *JSON_parse_float (JSON_Parser *json, char *p, char *pe, VALUE *result)
744
+ static char *JSON_parse_number (JSON_Parser *json, char *p, char *pe, VALUE *result)
745
745
{
746
746
int cs = EVIL;
747
747
bool is_float = false;
0 commit comments