Rework an initialization to remove a use of an IUO that was banned by SE-0054.

This commit is contained in:
Mark Lacey
2017-10-26 18:13:03 -07:00
parent 03cef65d75
commit cbca1f23f6

View File

@@ -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.")