mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Fix GCC warning about uchar > 255 comparison.
This commit is contained in:
parent
2f5f1fbac9
commit
72b29dd90d
1 changed files with 1 additions and 1 deletions
|
@ -370,7 +370,7 @@ bytes::vector DecryptData(
|
|||
LOG(("API Error: Bad data hash."));
|
||||
return {};
|
||||
}
|
||||
const auto padding = static_cast<uchar>(decrypted[0]);
|
||||
const auto padding = static_cast<uint32>(decrypted[0]);
|
||||
if (padding < kMinPadding
|
||||
|| padding > kMaxPadding
|
||||
|| padding > decrypted.size()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue