From b0dfc088aef3e4830bd1c4b4399551d620268232 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 17 Jul 2018 16:49:57 +0300 Subject: [PATCH] Fix CE. GitOrigin-RevId: 6117160e2ee0045bb0c7dc8e3e048a5aae2626f1 --- td/telegram/LanguagePackManager.cpp | 5 +++-- tddb/td/db/binlog/detail/BinlogEventsProcessor.h | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/td/telegram/LanguagePackManager.cpp b/td/telegram/LanguagePackManager.cpp index 42b85a4b3..14cd7dbcd 100644 --- a/td/telegram/LanguagePackManager.cpp +++ b/td/telegram/LanguagePackManager.cpp @@ -13,6 +13,7 @@ #include "td/telegram/Td.h" #include "td/utils/logging.h" +#include "td/utils/Status.h" #include "td/telegram/td_api.h" #include "td/telegram/telegram_api.h" @@ -49,7 +50,7 @@ void LanguagePackManager::on_language_code_changed() { void LanguagePackManager::on_language_pack_version_changed(int32 new_version) { Language *language = get_language(language_pack_, language_code_); - auto version = language == nullptr ? -1 : language->version_; + int32 version = language == nullptr ? static_cast(-1) : language->version_.load(); if (version == -1) { return; } @@ -102,7 +103,7 @@ void LanguagePackManager::on_update_language_pack(tl_object_ptrversion_; + int32 version = language == nullptr ? static_cast(-1) : language->version_.load(); if (difference->version_ <= version) { LOG(INFO) << "Skip applying already applied updates"; return; diff --git a/tddb/td/db/binlog/detail/BinlogEventsProcessor.h b/tddb/td/db/binlog/detail/BinlogEventsProcessor.h index b7cf97bec..edd8b4f24 100644 --- a/tddb/td/db/binlog/detail/BinlogEventsProcessor.h +++ b/tddb/td/db/binlog/detail/BinlogEventsProcessor.h @@ -10,6 +10,7 @@ #include "td/utils/common.h" #include "td/utils/logging.h" +#include "td/utils/Status.h" namespace td { namespace detail {