commit | 29d8773e7c1099133e88e0c37be7a5b228904be5 | [log] [tgz] |
---|---|---|
author | Kino Roy <kroy@sfu.ca> | Mon Feb 20 22:32:43 2023 -0800 |
committer | Jens Geyer <jensg@apache.org> | Mon Apr 28 23:42:16 2025 +0200 |
tree | b2cdf9e1985d8b540dbc4207904185627f6a3983 | |
parent | 47d0fbb1fae1040f8d83f8cfa72f243dbc132dca [diff] [blame] |
THRIFT-4838: Add unix socket support for Swift Client: Swift Patch: Kino Roy
diff --git a/lib/swift/Sources/LinuxHelper.swift b/lib/swift/Sources/LinuxHelper.swift index 83603f8..7ab0b3e 100644 --- a/lib/swift/Sources/LinuxHelper.swift +++ b/lib/swift/Sources/LinuxHelper.swift
@@ -27,7 +27,7 @@ extension UInt { public static func &(lhs: UInt, rhs: Int) -> UInt { - let cast = unsafeBitCast(rhs, to: UInt.self) + let cast = UInt(bitPattern: rhs) return lhs & cast } }