Skip to content

Commit 18b5b04

Browse files
committed
formatting
1 parent 7027c86 commit 18b5b04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tutorial02_answer/leptjson.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ static int lept_parse_number(lept_context* c, lept_value* v) {
5151
}
5252
errno = 0;
5353
v->n = strtod(c->json, NULL);
54-
if (errno == ERANGE && (v->n == HUGE_VAL || v->n == -HUGE_VAL)) return LEPT_PARSE_NUMBER_TOO_BIG;
54+
if (errno == ERANGE && (v->n == HUGE_VAL || v->n == -HUGE_VAL))
55+
return LEPT_PARSE_NUMBER_TOO_BIG;
5556
v->type = LEPT_NUMBER;
5657
c->json = p;
5758
return LEPT_PARSE_OK;

0 commit comments

Comments
 (0)