cast for conversion warning

This commit is contained in:
JacobBarthelmeh
2025-04-03 16:32:28 -06:00
parent 8b0650d0fb
commit 04dce0e223

View File

@@ -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;