From 8c45bd919e9396114b2af94fefd262ce06be9ef3 Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 24 Jun 2018 19:50:09 +0300 Subject: [PATCH] Fix pad_size type. GitOrigin-RevId: 3ec3f1f14a3a54fc28131f3b4bc7bda383e3a704 --- td/mtproto/NoCryptoStorer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/mtproto/NoCryptoStorer.h b/td/mtproto/NoCryptoStorer.h index 913c658df..f43a2ebf5 100644 --- a/td/mtproto/NoCryptoStorer.h +++ b/td/mtproto/NoCryptoStorer.h @@ -16,7 +16,7 @@ class NoCryptoImpl { public: NoCryptoImpl(uint64 message_id, const Storer &data, bool need_pad = true) : message_id_(message_id), data_(data) { if (need_pad) { - auto pad_size = -static_cast(data_.size()) & 15; + size_t pad_size = -static_cast(data_.size()) & 15; pad_size += 16 * (static_cast(Random::secure_int32()) % 16); pad_.resize(pad_size); Random::secure_bytes(pad_);