diff --git a/libc/src/__support/float_to_string.h b/libc/src/__support/float_to_string.h index 4dc9d6eb3cb735..1431aeffa5b210 100644 --- a/libc/src/__support/float_to_string.h +++ b/libc/src/__support/float_to_string.h @@ -503,7 +503,7 @@ class FloatToString { cpp::UInt val; - const uint32_t pos_exp = idx * IDX_SIZE; + const uint32_t pos_exp = static_cast(idx * IDX_SIZE); #if defined(LIBC_COPT_FLOAT_TO_STR_USE_DYADIC_FLOAT) // ----------------------- DYADIC FLOAT CALC MODE ------------------------