Fix unused variable warning in GCC7

PiperOrigin-RevId: 853321697
Change-Id: I44b09e10e6ca1bb9b9f30a01a0f5acd5923371c1
This commit is contained in:
Derek Mauro
2026-01-07 10:33:43 -08:00
committed by Copybara-Service
parent 237c42c78f
commit d9d76ba372

View File

@@ -1745,7 +1745,7 @@ void FormatEPositiveExpSlow(uint128 mantissa, int exp, bool uppercase,
bool change_to_zeros = false;
if (nines + 1 >= digits_to_go) {
// Everything we need to print is in the first DigitRun
auto [next_digit_opt, next_nines] = GetDigits(btd, digits_view);
auto next_digit_opt = GetDigits(btd, digits_view).digit;
if (nines == state.precision) {
change_to_zeros = next_digit_opt.value_or(0) > 4;
} else {
@@ -1793,7 +1793,7 @@ void FormatEPositiveExpSlow(uint128 mantissa, int exp, bool uppercase,
digits_to_go -= curr_nines + 1;
} else {
bool need_round_up = false;
auto [next_digit_opt, next_nines] = GetDigits(btd, digits_view);
auto next_digit_opt = GetDigits(btd, digits_view).digit;
if (digits_to_go == 1) {
need_round_up = curr_nines > 0 || next_digit_opt > 4;
} else if (digits_to_go == curr_nines + 1) {