Fixes for minor compiler cast warnings.

This commit is contained in:
David Garske
2019-07-29 08:14:27 -07:00
parent e3653a7a07
commit 91251eb319
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -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 */