From a539a090009378ecfcfbfaaa280eeac8f5b9d695 Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Fri, 8 Dec 2023 18:12:35 +0100 Subject: [libc] Fix missing UInt initialization (#74869) Fix forward for #74862 --- libc/src/__support/float_to_string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/src/__support/float_to_string.h b/libc/src/__support/float_to_string.h index 9f24352..92dd2e8 100644 --- a/libc/src/__support/float_to_string.h +++ b/libc/src/__support/float_to_string.h @@ -653,7 +653,7 @@ FloatToString::get_positive_block(int block_index) { // shift_amount = -(c0 - exponent) = c_0 + 16 * ceil(exponent/16) - exponent - cpp::UInt val; + cpp::UInt val(0); #ifdef LIBC_COPT_FLOAT_TO_STR_USE_MEGA_LONG_DOUBLE_TABLE // ------------------------------ TABLE MODE ------------------------------- const int32_t SHIFT_CONST = TABLE_SHIFT_CONST; -- cgit v1.1