Skip to content

Commit 0b076fa

Browse files
authored
Merge pull request #12773 from rudkx/illegal-iuo-glibc
Another fix for an initialization using a cast involving an IUO.
2 parents f8aef0a + 1236b4e commit 0b076fa

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)