From 91251eb319d153751a5fbb7f1e3af90baaaab020 Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 29 Jul 2019 08:14:27 -0700 Subject: [PATCH] Fixes for minor compiler cast warnings. --- src/internal.c | 4 ++-- src/ssl.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/internal.c b/src/internal.c index 5abb513fe1..e7bf27036f 100644 --- a/src/internal.c +++ b/src/internal.c @@ -4467,10 +4467,10 @@ int InitSSL_Suites(WOLFSSL* ssl) havePSK = (byte)ssl->options.havePSK; #endif /* NO_PSK */ #ifdef HAVE_ANON - haveAnon = ssl->options.haveAnon; + haveAnon = (byte)ssl->options.haveAnon; #endif /* HAVE_ANON*/ #ifdef WOLFSSL_MULTICAST - haveMcast = ssl->options.haveMcast; + haveMcast = (byte)ssl->options.haveMcast; #endif /* WOLFSSL_MULTICAST */ #ifdef WOLFSSL_EARLY_DATA diff --git a/src/ssl.c b/src/ssl.c index 4d9aeb8d06..701d19ae99 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -971,7 +971,7 @@ int wolfSSL_CTX_mcast_set_member_id(WOLFSSL_CTX* ctx, word16 id) if (ret == 0) { ctx->haveEMS = 0; ctx->haveMcast = 1; - ctx->mcastID = id; + ctx->mcastID = (byte)id; #ifndef WOLFSSL_USER_IO ctx->CBIORecv = EmbedReceiveFromMcast; #endif /* WOLFSSL_USER_IO */