Skip to content

Commit e3b3b47

Browse files
authored
Merge pull request #68784 from kubamracek/embedded-roundingmode
[embedded] Fix a warning in stdlib build about never executed switch case
2 parents dc3344f + bb455dd commit e3b3b47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/core/FloatingPointTypes.swift.gyb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,10 @@ extension ${Self}: BinaryFloatingPoint {
717717
_value = Builtin.int_ceil_FPIEEE${bits}(_value)
718718
case .down:
719719
_value = Builtin.int_floor_FPIEEE${bits}(_value)
720+
#if !$Embedded
720721
@unknown default:
721722
self._roundSlowPath(rule)
723+
#endif
722724
}
723725
}
724726

0 commit comments

Comments
 (0)