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_);