mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix call sites of unsafeBitCast() in the Glibc overlay
This commit is contained in:
@@ -166,13 +166,13 @@ public var S_ISVTX: mode_t { return mode_t(0o001000) }
|
||||
#if os(Linux)
|
||||
public var SIG_DFL: __sighandler_t? { return nil }
|
||||
public var SIG_IGN: __sighandler_t {
|
||||
return unsafeBitCast(1, __sighandler_t.self)
|
||||
return unsafeBitCast(1, to: __sighandler_t.self)
|
||||
}
|
||||
public var SIG_ERR: __sighandler_t {
|
||||
return unsafeBitCast(-1, __sighandler_t.self)
|
||||
return unsafeBitCast(-1, to: __sighandler_t.self)
|
||||
}
|
||||
public var SIG_HOLD: __sighandler_t {
|
||||
return unsafeBitCast(2, __sighandler_t.self)
|
||||
return unsafeBitCast(2, to: __sighandler_t.self)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user