Skip to content

Commit 051d151

Browse files
committed
small performance improvement after full cleanup.
1 parent 2423180 commit 051d151

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/fast_float/ascii_number.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ parse_int_string(UC const *p, UC const *pend, T &value,
582582
#if FASTFLOAT_HAS_IS_CONSTANT_EVALUATED && FASTFLOAT_HAS_BIT_CAST
583583
if (std::is_constant_evaluated()) {
584584
uint8_t str[4];
585-
for (uint_fast8_t j = 0; j < 4 && j < len; ++j) {
585+
for (uint_fast8_t j = 0; j != 4 && j != len; ++j) {
586586
str[j] = static_cast<uint8_t>(p[j]);
587587
}
588588
digits = bit_cast<uint32_t>(str);

include/fast_float/bigint.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ struct bigint : pow5_tables<> {
518518
limb_t const shl = n;
519519
limb_t const shr = limb_bits - shl;
520520
limb prev = 0;
521-
for (limb_t index = 0; index < vec.len(); ++index) {
521+
for (limb_t index = 0; index != vec.len(); ++index) {
522522
limb xi = vec[index];
523523
vec[index] = (xi << shl) | (prev >> shr);
524524
prev = xi;

0 commit comments

Comments
 (0)