mirror of
https://github.com/json-c/json-c.git
synced 2026-03-21 14:09:06 +08:00
Fixed #371: -Infinity correctly parsed after other Infinity
This commit is contained in:
@@ -337,6 +337,7 @@ struct json_object* json_tokener_parse_ex(struct json_tokener *tok,
|
||||
state = json_tokener_state_number;
|
||||
printbuf_reset(tok->pb);
|
||||
tok->is_double = 0;
|
||||
tok->st_pos = 0;
|
||||
goto redo_char;
|
||||
default:
|
||||
tok->err = json_tokener_error_parse_unexpected;
|
||||
|
||||
Reference in New Issue
Block a user