We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 912583a commit 7902b41Copy full SHA for 7902b41
stdlib/public/core/FloatingPointToString.swift
@@ -706,7 +706,7 @@ internal func _Float64ToASCII(
706
} else { // d.isNaN
707
let quietBit =
708
(d.significandBitPattern >> (Double.significandBitCount - 1)) & 1
709
- let payloadMask = UInt64(1 << (Double.significandBitCount - 2)) - 1
+ let payloadMask = (UInt64(1) << (Double.significandBitCount - 2)) - 1
710
let payload64 = d.significandBitPattern & payloadMask
711
return nan_details(
712
buffer: &buffer,
0 commit comments