We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19453a6 commit ddca08dCopy full SHA for ddca08d
src/jv_parse.c
@@ -514,7 +514,7 @@ static pfunc check_literal(struct jv_parser* p) {
514
case 'f': pattern = "false"; plen = 5; v = jv_false(); break;
515
case 'n':
516
// if it starts with 'n', it could be a literal "nan"
517
- if (p->tokenpos != 3) {
+ if (p->tokenbuf[1] == 'u') {
518
pattern = "null"; plen = 4; v = jv_null();
519
}
520
0 commit comments