mirror of
https://github.com/apple/swift-system
synced 2026-11-25 04:47:55 +00:00
Fix HRESULT_FACILITY
HRESULT_FACILITY is >> 16 & 0x1fff, not <<
This commit is contained in:
1 parent
b083113aef
commit
0dcedcb7bb
1 file changed
+1
-1
@@ -517,7 +517,7 @@ fileprivate func HRESULT_CODE(_ hr: HRESULT) -> DWORD {
|
||||
|
||||
@inline(__always)
|
||||
fileprivate func HRESULT_FACILITY(_ hr: HRESULT) -> DWORD {
|
||||
DWORD(hr << 16) & 0x1fff
|
||||
DWORD(hr >> 16) & 0x1fff
|
||||
}
|
||||
|
||||
@inline(__always)
|
||||
|
||||
Reference in new issue
Block a user