Skip to content

Commit 8f39321

Browse files
committed
Remove redundant check for negative float
1 parent 010e9d4 commit 8f39321

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ext/json/ext/parser/parser.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,11 +1199,6 @@ static VALUE json_parse_any(JSON_ParserState *state, JSON_ParserConfig *config)
11991199
e10 -= (m10digits - decimal_point_pos);
12001200
}
12011201

1202-
// Check for sign
1203-
if (start[0] == '-') {
1204-
signedM = true;
1205-
}
1206-
12071202
// Use optimized Ryu path if we have a valid mantissa
12081203
if (m10digits > 0 && m10digits <= 17 && !config->decimal_class) {
12091204
return json_push_value(state, config, json_ryu_parse_float(m10, m10digits, e10, signedM, start, state->cursor));

0 commit comments

Comments
 (0)