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 7027c86 commit 18b5b04Copy full SHA for 18b5b04
tutorial02_answer/leptjson.c
@@ -51,7 +51,8 @@ static int lept_parse_number(lept_context* c, lept_value* v) {
51
}
52
errno = 0;
53
v->n = strtod(c->json, NULL);
54
- if (errno == ERANGE && (v->n == HUGE_VAL || v->n == -HUGE_VAL)) return LEPT_PARSE_NUMBER_TOO_BIG;
+ if (errno == ERANGE && (v->n == HUGE_VAL || v->n == -HUGE_VAL))
55
+ return LEPT_PARSE_NUMBER_TOO_BIG;
56
v->type = LEPT_NUMBER;
57
c->json = p;
58
return LEPT_PARSE_OK;
0 commit comments