Skip to content

Commit 87c177c

Browse files
[stdlib] Change misleading comment
1 parent 789ada5 commit 87c177c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

stdlib/public/core/Integers.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3010,9 +3010,7 @@ extension FixedWidthInteger {
30103010
let minBitWidth = source.significandWidth
30113011
let isExact = (minBitWidth <= exponent)
30123012
let bitPattern = source.significandBitPattern
3013-
// `RawSignificand.bitWidth` is not available if `RawSignificand` does not
3014-
// conform to `FixedWidthInteger`; we can compute this value as follows if
3015-
// `source` is finite:
3013+
// Determine the number of meaningful bits in the significand bit pattern.
30163014
let bitWidth = minBitWidth &+ bitPattern.trailingZeroBitCount
30173015
let shift = exponent - Source.Exponent(bitWidth)
30183016
// Use `Self.Magnitude` to prevent sign extension if `shift < 0`.

0 commit comments

Comments
 (0)