Skip to content

Commit 73811d6

Browse files
committed
[stdlib] Fix for nextUp and nextDown
1 parent b766307 commit 73811d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/public/core/FloatingPointTypes.swift.gyb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,9 @@ extension ${Self}: BinaryFloatingPoint {
472472
exponentBitPattern: exponentBitPattern - 1,
473473
significandBitPattern: ${Self}._significandMask)
474474
}
475+
return ${Self}(sign: .minus,
476+
exponentBitPattern: exponentBitPattern,
477+
significandBitPattern: significandBitPattern - 1)
475478
}
476479
if isInfinite { return self }
477480
if significandBitPattern == ${Self}._significandMask {

0 commit comments

Comments
 (0)