Skip to content

Commit 8a0ff19

Browse files
[libc] Fix type warning on gcc in float to str (#79482)
Minor cast warning that was missed in previous patch. Fixed with explicit cast.
1 parent a19629d commit 8a0ff19

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
@@ -503,7 +503,7 @@ class FloatToString {
503503

504504
cpp::UInt<MID_INT_SIZE> val;
505505

506-
const uint32_t pos_exp = idx * IDX_SIZE;
506+
const uint32_t pos_exp = static_cast<uint32_t>(idx * IDX_SIZE);
507507

508508
#if defined(LIBC_COPT_FLOAT_TO_STR_USE_DYADIC_FLOAT)
509509
// ----------------------- DYADIC FLOAT CALC MODE ------------------------

0 commit comments

Comments
 (0)