fixed warning int/size_t

This commit is contained in:
Tomasz Sowa 2021-05-21 00:42:45 +02:00
parent deb8c31951
commit 9da05dfb4f
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2012, Tomasz Sowa
* Copyright (c) 2012-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -908,7 +908,7 @@ bool AES::DecodeCBC_PKCS7(std::vector<uint8> & content, const AES::uint8 * iv)
if( !DecodeCBC(content.data(), content.size(), iv) )
return false;
int pad = content[content.size()-1];
size_t pad = content[content.size()-1];
if( pad > 16 || content.size() < pad )
return false;