Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
miloyip committed Sep 21, 2016
1 parent 7027c86 commit 18b5b04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tutorial02_answer/leptjson.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ static int lept_parse_number(lept_context* c, lept_value* v) {
}
errno = 0;
v->n = strtod(c->json, NULL);
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))
return LEPT_PARSE_NUMBER_TOO_BIG;
v->type = LEPT_NUMBER;
c->json = p;
return LEPT_PARSE_OK;
Expand Down

0 comments on commit 18b5b04

Please sign in to comment.