From 27ce3c930846f077fcbb3d961d45dc6224721aba Mon Sep 17 00:00:00 2001 From: bitdust Date: Fri, 8 May 2015 18:18:01 +0800 Subject: Update aes.c use uintptr_t instead of intptr_t to avoid warming C4018 in Virsual Studio. warming C4018: 'expression' : signed/unsigned mismatch https://msdn.microsoft.com/library/y92ktdf2.aspx --- aes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aes.c b/aes.c index 4c7645f..38ec132 100644 --- a/aes.c +++ b/aes.c @@ -498,7 +498,7 @@ static void XorWithIv(uint8_t* buf) void AES128_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* iv) { - intptr_t i; + uintptr_t i; uint8_t remainders = length % KEYLEN; /* Remaining bytes in the last non-full block */ BlockCopy(output, input); @@ -538,7 +538,7 @@ void AES128_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, void AES128_CBC_decrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* iv) { - intptr_t i; + uintptr_t i; uint8_t remainders = length % KEYLEN; /* Remaining bytes in the last non-full block */ BlockCopy(output, input); -- cgit v1.2.3