Browse Source

Fixed #371: -Infinity correctly parsed after other Infinity

pull/372/head
Jlguardi 8 years ago
parent
commit
83c29cf1f4
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      json_tokener.c

+ 1
- 0
json_tokener.c View File

@@ -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;


Loading…
Cancel
Save