From 8a87f2996a69124038c96c7acded4a149c6cbf54 Mon Sep 17 00:00:00 2001 From: John Preston <johnprestonmail@gmail.com> Date: Thu, 19 May 2022 19:11:45 +0400 Subject: [PATCH] Fix build with Xcode. --- Telegram/SourceFiles/dialogs/ui/dialogs_video_userpic.h | 1 - Telegram/SourceFiles/export/export_api_wrap.cpp | 2 +- Telegram/SourceFiles/export/export_settings.cpp | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/dialogs/ui/dialogs_video_userpic.h b/Telegram/SourceFiles/dialogs/ui/dialogs_video_userpic.h index c5cf412b2..3cc332ba8 100644 --- a/Telegram/SourceFiles/dialogs/ui/dialogs_video_userpic.h +++ b/Telegram/SourceFiles/dialogs/ui/dialogs_video_userpic.h @@ -48,7 +48,6 @@ private: int _lastSize = 0; std::shared_ptr<Data::PhotoMedia> _videoPhotoMedia; PhotoId _videoPhotoId = 0; - PhotoId _photoIdRequested = 0; }; diff --git a/Telegram/SourceFiles/export/export_api_wrap.cpp b/Telegram/SourceFiles/export/export_api_wrap.cpp index 1d7fabd7c..21312886b 100644 --- a/Telegram/SourceFiles/export/export_api_wrap.cpp +++ b/Telegram/SourceFiles/export/export_api_wrap.cpp @@ -28,7 +28,7 @@ constexpr auto kFileRequestsCount = 2; constexpr auto kChatsSliceLimit = 100; constexpr auto kMessagesSliceLimit = 100; constexpr auto kTopPeerSliceLimit = 100; -constexpr auto kFileMaxSize = 4000 * 1024 * 1024; +constexpr auto kFileMaxSize = 4000 * int64(1024 * 1024); constexpr auto kLocationCacheSize = 100'000; struct LocationKey { diff --git a/Telegram/SourceFiles/export/export_settings.cpp b/Telegram/SourceFiles/export/export_settings.cpp index 75a287eb0..58f2ab553 100644 --- a/Telegram/SourceFiles/export/export_settings.cpp +++ b/Telegram/SourceFiles/export/export_settings.cpp @@ -12,7 +12,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL namespace Export { namespace { -constexpr auto kMaxFileSize = 4000 * 1024 * 1024; +constexpr auto kMaxFileSize = 4000 * int64(1024 * 1024); } // namespace