mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rework an initialization to remove a use of an IUO that was banned by SE-0054.
This commit is contained in:
@@ -12,8 +12,7 @@
|
||||
|
||||
@_exported import Darwin // Clang module
|
||||
|
||||
public let MAP_FAILED =
|
||||
UnsafeMutableRawPointer(bitPattern: -1)! as UnsafeMutableRawPointer!
|
||||
public let MAP_FAILED: UnsafeMutableRawPointer! = UnsafeMutableRawPointer(bitPattern: -1)
|
||||
|
||||
// Constants defined by <math.h>
|
||||
@available(swift, deprecated: 3.0, message: "Please use 'Double.pi' or '.pi' to get the value of correct type and avoid casting.")
|
||||
|
||||
Reference in New Issue
Block a user