Skip to content

Commit a539a09

Browse files
authored
[libc] Fix missing UInt initialization (#74869)
Fix forward for #74862
1 parent f725017 commit a539a09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/float_to_string.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ FloatToString<long double>::get_positive_block(int block_index) {
653653

654654
// shift_amount = -(c0 - exponent) = c_0 + 16 * ceil(exponent/16) - exponent
655655

656-
cpp::UInt<MID_INT_SIZE> val;
656+
cpp::UInt<MID_INT_SIZE> val(0);
657657
#ifdef LIBC_COPT_FLOAT_TO_STR_USE_MEGA_LONG_DOUBLE_TABLE
658658
// ------------------------------ TABLE MODE -------------------------------
659659
const int32_t SHIFT_CONST = TABLE_SHIFT_CONST;

0 commit comments

Comments
 (0)