Skip to content

Commit d9d76ba

Browse files
derekmaurocopybara-github
authored andcommitted
Fix unused variable warning in GCC7
PiperOrigin-RevId: 853321697 Change-Id: I44b09e10e6ca1bb9b9f30a01a0f5acd5923371c1
1 parent 237c42c commit d9d76ba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

absl/strings/internal/str_format/float_conversion.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,7 +1745,7 @@ void FormatEPositiveExpSlow(uint128 mantissa, int exp, bool uppercase,
17451745
bool change_to_zeros = false;
17461746
if (nines + 1 >= digits_to_go) {
17471747
// Everything we need to print is in the first DigitRun
1748-
auto [next_digit_opt, next_nines] = GetDigits(btd, digits_view);
1748+
auto next_digit_opt = GetDigits(btd, digits_view).digit;
17491749
if (nines == state.precision) {
17501750
change_to_zeros = next_digit_opt.value_or(0) > 4;
17511751
} else {
@@ -1793,7 +1793,7 @@ void FormatEPositiveExpSlow(uint128 mantissa, int exp, bool uppercase,
17931793
digits_to_go -= curr_nines + 1;
17941794
} else {
17951795
bool need_round_up = false;
1796-
auto [next_digit_opt, next_nines] = GetDigits(btd, digits_view);
1796+
auto next_digit_opt = GetDigits(btd, digits_view).digit;
17971797
if (digits_to_go == 1) {
17981798
need_round_up = curr_nines > 0 || next_digit_opt > 4;
17991799
} else if (digits_to_go == curr_nines + 1) {

0 commit comments

Comments
 (0)