From 04dce0e22314544764177b5163357d47b57e0c6f Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Thu, 3 Apr 2025 16:32:28 -0600 Subject: [PATCH] cast for conversion warning --- wolfcrypt/src/pkcs7.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/pkcs7.c b/wolfcrypt/src/pkcs7.c index e48312a6a..2fae70028 100644 --- a/wolfcrypt/src/pkcs7.c +++ b/wolfcrypt/src/pkcs7.c @@ -2645,10 +2645,10 @@ static int wc_PKCS7_EncodeContentStream(wc_PKCS7* pkcs7, ESD* esd, void* aes, int amtWritten = 0; /* loop over current buffer until it is empty */ - while (idx + sz > BER_OCTET_LENGTH) { + while (idx + (word32)sz > BER_OCTET_LENGTH) { sz = BER_OCTET_LENGTH; if (idx > 0) { /* account for previously stored data */ - sz = BER_OCTET_LENGTH - idx; + sz = BER_OCTET_LENGTH - (int)idx; } contentDataRead -= sz;