Skip to content

Commit bd2d0f7

Browse files
authored
One unlikely too many (simdjson#930)
1 parent d830422 commit bd2d0f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/generic/stage2/numberparsing.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ really_inline bool parse_number(UNUSED const uint8_t *const src,
497497
}
498498
// we over-decrement by one when there is a '.'
499499
digit_count -= int(start - start_digits);
500-
if (unlikely(digit_count >= 19)) {
500+
if (digit_count >= 19) {
501501
// Ok, chances are good that we had an overflow!
502502
// this is almost never going to get called!!!
503503
// we start anew, going slowly!!!
@@ -507,7 +507,7 @@ really_inline bool parse_number(UNUSED const uint8_t *const src,
507507
//
508508
bool success = slow_float_parsing((const char *) src, writer);
509509
// The number was already written, but we made a copy of the writer
510-
// when we passed it to the parse_large_integer() function, so
510+
// when we passed it to the parse_large_integer() function, so
511511
writer.skip_double();
512512
return success;
513513
}
@@ -546,7 +546,7 @@ really_inline bool parse_number(UNUSED const uint8_t *const src,
546546
// need to recover: we parse the whole thing again.
547547
bool success = parse_large_integer(src, writer, found_minus);
548548
// The number was already written, but we made a copy of the writer
549-
// when we passed it to the parse_large_integer() function, so
549+
// when we passed it to the parse_large_integer() function, so
550550
writer.skip_large_integer();
551551
return success;
552552
}

0 commit comments

Comments
 (0)