mirror of https://github.com/procxx/kepka.git
Fix GCC warning about uchar > 255 comparison.
This commit is contained in:
parent
2f5f1fbac9
commit
72b29dd90d
Telegram/SourceFiles/passport
|
@ -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…
Reference in New Issue