Fix GCC warning about uchar > 255 comparison.

This commit is contained in:
John Preston 2018-04-25 19:50:26 +04:00
parent 2f5f1fbac9
commit 72b29dd90d

View File

@ -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()) {