From cc03e3fdabaff13d279d8290cfdffbe72ae95400 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Tue, 27 Sep 2022 10:05:07 -0500 Subject: [PATCH] wolfcrypt/src/misc.c ByteReverseWords(): mollify MSVC re C4311. --- wolfcrypt/src/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/misc.c b/wolfcrypt/src/misc.c index 23057c8bb..cf9fe4ee1 100644 --- a/wolfcrypt/src/misc.c +++ b/wolfcrypt/src/misc.c @@ -190,8 +190,8 @@ WC_STATIC WC_INLINE void ByteReverseWords(word32* out, const word32* in, word32 count, i; #ifdef WOLFSSL_USE_ALIGN - if ((((unsigned long)in & 0x3) == 0) && - (((unsigned long)out & 0x3) == 0)) + if ((((size_t)in & 0x3) == 0) && + (((size_t)out & 0x3) == 0)) { #endif count = byteCount/(word32)sizeof(word32);