Skip to content

Commit acd43ad

Browse files
committed
Fix Float32 formatting on 32-bit architectures
1 parent a6fd1aa commit acd43ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/FloatingPointToString.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ internal func _Float32ToASCII(
549549

550550
// Step 6: Align first digit, adjust exponent
551551

552-
while u < (1 &<< fractionBits) {
552+
while u < (UInt64(1) &<< fractionBits) {
553553
base10Exponent &-= 1
554554
l &*= 10
555555
u &*= 10

0 commit comments

Comments
 (0)