Skip to content

Commit dded839

Browse files
authored
Merge pull request #12651 from rudkx/remove-illegal-use-of-iuo
Rework an initialization to remove a use of an IUO that was banned by…
2 parents 56a1663 + cbca1f2 commit dded839

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stdlib/public/Platform/Darwin.swift.gyb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212

1313
@_exported import Darwin // Clang module
1414

15-
public let MAP_FAILED =
16-
UnsafeMutableRawPointer(bitPattern: -1)! as UnsafeMutableRawPointer!
15+
public let MAP_FAILED: UnsafeMutableRawPointer! = UnsafeMutableRawPointer(bitPattern: -1)
1716

1817
// Constants defined by <math.h>
1918
@available(swift, deprecated: 3.0, message: "Please use 'Double.pi' or '.pi' to get the value of correct type and avoid casting.")

0 commit comments

Comments
 (0)