diff --git a/src/internal.c b/src/internal.c index a2e856542..63b009013 100644 --- a/src/internal.c +++ b/src/internal.c @@ -9373,7 +9373,7 @@ int CheckForAltNames(DecodedCert* dCert, const char* domain, int* checkCN) XMEMSET(tmp, 0, sizeof(tmp)); XSNPRINTF(tmp, sizeof(tmp), (altName->len <= 4) ? "%u" : "%02X", altName->name[i]); - idx += XSTRLEN(tmp); + idx += (word32)XSTRLEN(tmp); XSTRNCAT(name, tmp, (altName->len <= 4) ? 3 : 2); if ((idx < WOLFSSL_MAX_IPSTR ) && ((i + 1) < altName->len)) { name[idx++] = (altName->len <= 4) ? '.' : ':'; diff --git a/src/ssl.c b/src/ssl.c index b1c0a9871..f7e913f04 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -41207,12 +41207,12 @@ int wolfSSL_BIO_new_bio_pair(WOLFSSL_BIO **bio1_p, size_t writebuf1, } } if (ret && writebuf1) { - if (!(ret = wolfSSL_BIO_set_write_buf_size(bio1, writebuf1))) { + if (!(ret = wolfSSL_BIO_set_write_buf_size(bio1, (long)writebuf1))) { WOLFSSL_MSG("wolfSSL_BIO_set_write_buf() failure"); } } if (ret && writebuf2) { - if (!(ret = wolfSSL_BIO_set_write_buf_size(bio2, writebuf2))) { + if (!(ret = wolfSSL_BIO_set_write_buf_size(bio2, (long)writebuf2))) { WOLFSSL_MSG("wolfSSL_BIO_set_write_buf() failure"); } }