From 9da05dfb4f50ee68173745afd0df58dd970f7081 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Fri, 21 May 2021 00:42:45 +0200 Subject: [PATCH] fixed warning int/size_t --- src/aes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aes.cpp b/src/aes.cpp index ecb87d5..54d306f 100644 --- a/src/aes.cpp +++ b/src/aes.cpp @@ -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 & 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;