Skip to content

Commit 1236b4e

Browse files
committed
Another fix for an initialization using a cast involving an IUO.
Like the change in cbca1f2, this is not allowed under SE-0054.
1 parent 6062204 commit 1236b4e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stdlib/public/Platform/Glibc.swift.gyb

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

1313
@_exported import SwiftGlibc // 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)