From 724e50c4fda091ac5c79dafd42d4e07597e009a2 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Thu, 8 Dec 2016 19:23:14 -0700 Subject: [PATCH] cast flag to byte type from int --- src/ssl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index c0582e09c..b9ef03a54 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -10052,7 +10052,7 @@ int wolfSSL_set_compression(WOLFSSL* ssl) if (b != NULL) { b->ssl = ssl; - b->close = closeF; + b->close = (byte)closeF; /* add to ssl for bio free if SSL_free called before/instead of free_all? */ } @@ -10066,7 +10066,7 @@ int wolfSSL_set_compression(WOLFSSL* ssl) if (b != NULL) { b->fd = fd; - b->close = closeF; + b->close = (byte)closeF; } return SSL_SUCCESS; @@ -14785,7 +14785,7 @@ int wolfSSL_CTX_set_read_ahead(WOLFSSL_CTX* ctx, int v) return SSL_FAILURE; } - ctx->readAhead = v; + ctx->readAhead = (byte)v; return SSL_SUCCESS; }