From 6777b204534dd577025b7c913af3bc8e02d40a64 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 14 Mar 2020 14:11:41 +0400 Subject: [PATCH] Beta version 1.9.20: Fix build on GCC. --- Telegram/SourceFiles/storage/localstorage.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/storage/localstorage.cpp b/Telegram/SourceFiles/storage/localstorage.cpp index d44fc2d25..0418ce73a 100644 --- a/Telegram/SourceFiles/storage/localstorage.cpp +++ b/Telegram/SourceFiles/storage/localstorage.cpp @@ -3675,9 +3675,7 @@ void _readStickerSets(FileKey &stickersKey, Stickers::Order *outOrder = nullptr, if (outOrder) { auto outOrderCount = quint32(); stickers.stream >> outOrderCount; - if (!_checkStreamStatus(stickers.stream) - || outOrderCount < 0 - || outOrderCount > 1000) { + if (!_checkStreamStatus(stickers.stream) || outOrderCount > 1000) { return failed(); } outOrder->reserve(outOrderCount);