From 5b9364fd6ddc817ca594e8971695c21a4363f256 Mon Sep 17 00:00:00 2001 From: Peter Date: Sat, 11 Feb 2017 17:04:15 +0300 Subject: [PATCH] no message --- TelegramCore/AccountState.swift | 6 +----- TelegramCore/ManagedRecentStickers.swift | 4 ++-- TelegramCore/NetworkLogging.m | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/TelegramCore/AccountState.swift b/TelegramCore/AccountState.swift index 21be89ae74..89c292d1ca 100644 --- a/TelegramCore/AccountState.swift +++ b/TelegramCore/AccountState.swift @@ -1,9 +1,5 @@ import Foundation -#if os(macOS) - import PostboxMac -#else - import Postbox -#endif +import Postbox private enum SentAuthorizationCodeTypeValue: Int32 { case otherSession = 0 diff --git a/TelegramCore/ManagedRecentStickers.swift b/TelegramCore/ManagedRecentStickers.swift index e35103c424..ff1830312d 100644 --- a/TelegramCore/ManagedRecentStickers.swift +++ b/TelegramCore/ManagedRecentStickers.swift @@ -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 diff --git a/TelegramCore/NetworkLogging.m b/TelegramCore/NetworkLogging.m index 4405ba893d..9af8076025 100644 --- a/TelegramCore/NetworkLogging.m +++ b/TelegramCore/NetworkLogging.m @@ -16,7 +16,7 @@ void setBridgingTraceFunction(void (*f)(NSString *, NSString *)) { #if TARGET_IPHONE_SIMULATOR static bool loggingEnabled = true; #elif defined(DEBUG) -static bool loggingEnabled = true; +static bool loggingEnabled = false; #else static bool loggingEnabled = false; #endif