This commit is contained in:
overtake 2017-02-11 21:12:05 +03:00
commit dd777708d8
2 changed files with 3 additions and 7 deletions

View File

@ -1,9 +1,5 @@
import Foundation
#if os(macOS)
import PostboxMac
#else
import Postbox
#endif
import Postbox
private enum SentAuthorizationCodeTypeValue: Int32 {
case otherSession = 0

View File

@ -11,8 +11,8 @@ private func hashForIdsReverse(_ ids: [Int64]) -> Int32 {
var acc: UInt32 = 0
for id in ids {
let low = UInt32(UInt64(bitPattern: id) & UInt64(0xffffffff))
let high = UInt32((UInt64(bitPattern: id) >> 32) & UInt64(0xffffffff))
let low = UInt32(UInt64(bitPattern: id) & (0xffffffff as UInt64))
let high = UInt32((UInt64(bitPattern: id) >> 32) & (0xffffffff as UInt64))
acc = (acc &* 20261) &+ high
acc = (acc &* 20261) &+ low