From 43c1796e876807ab41c37286ddbbecfa0aa51cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9E=AC=EC=9A=B1?= Date: Tue, 24 Feb 2026 11:24:28 +0900 Subject: [PATCH] refactor: simplify fractional digit count calculation by removing an intermediate variable --- include/fast_float/ascii_number.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/fast_float/ascii_number.h b/include/fast_float/ascii_number.h index 2de0c4c..b5a3335 100644 --- a/include/fast_float/ascii_number.h +++ b/include/fast_float/ascii_number.h @@ -400,10 +400,8 @@ parse_number_string(UC const *p, UC const *pend, // can occur at most twice without overflowing, but let it occur more, since // for integers with many digits, digit parsing is the primary bottleneck. if (!has_separator) { - UC const *const before_simd = p; loop_parse_if_eight_digits(p, pend, i); - size_t const exploded = size_t(p - before_simd); - fractional_digit_count += int64_t(exploded); + fractional_digit_count += int64_t(p - before); } while (p != pend) {