mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 08:05:12 +00:00
Fix GCC warning about uchar > 255 comparison.
This commit is contained in:
@@ -370,7 +370,7 @@ bytes::vector DecryptData(
|
|||||||
LOG(("API Error: Bad data hash."));
|
LOG(("API Error: Bad data hash."));
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
const auto padding = static_cast<uchar>(decrypted[0]);
|
const auto padding = static_cast<uint32>(decrypted[0]);
|
||||||
if (padding < kMinPadding
|
if (padding < kMinPadding
|
||||||
|| padding > kMaxPadding
|
|| padding > kMaxPadding
|
||||||
|| padding > decrypted.size()) {
|
|| padding > decrypted.size()) {
|
||||||
|
Reference in New Issue
Block a user