Fix build with Xcode.

This commit is contained in:
John Preston 2022-05-19 19:11:45 +04:00
parent ad3c6ebb1e
commit 8a87f2996a
3 changed files with 2 additions and 3 deletions

View file

@ -48,7 +48,6 @@ private:
int _lastSize = 0;
std::shared_ptr<Data::PhotoMedia> _videoPhotoMedia;
PhotoId _videoPhotoId = 0;
PhotoId _photoIdRequested = 0;
};

View file

@ -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 {

View file

@ -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