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