Skip to content

Commit 04dce0e

Browse files
cast for conversion warning
1 parent 8b0650d commit 04dce0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wolfcrypt/src/pkcs7.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2645,10 +2645,10 @@ static int wc_PKCS7_EncodeContentStream(wc_PKCS7* pkcs7, ESD* esd, void* aes,
26452645
int amtWritten = 0;
26462646

26472647
/* loop over current buffer until it is empty */
2648-
while (idx + sz > BER_OCTET_LENGTH) {
2648+
while (idx + (word32)sz > BER_OCTET_LENGTH) {
26492649
sz = BER_OCTET_LENGTH;
26502650
if (idx > 0) { /* account for previously stored data */
2651-
sz = BER_OCTET_LENGTH - idx;
2651+
sz = BER_OCTET_LENGTH - (int)idx;
26522652
}
26532653
contentDataRead -= sz;
26542654

0 commit comments

Comments
 (0)