From cce759b8dd4896bd8251ebb9dd82d23f1d93dd06 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant <“bsergean@gmail.com”> Date: Fri, 19 Apr 2019 15:03:49 -0700 Subject: [PATCH] fix Linux cast warning --- ixwebsocket/IXSocketOpenSSL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ixwebsocket/IXSocketOpenSSL.cpp b/ixwebsocket/IXSocketOpenSSL.cpp index 3e6b14fc..3a5bbc5d 100644 --- a/ixwebsocket/IXSocketOpenSSL.cpp +++ b/ixwebsocket/IXSocketOpenSSL.cpp @@ -342,7 +342,7 @@ namespace ix ERR_clear_error(); ssize_t write_result = SSL_write(_ssl_connection, buf + sent, (int) nbyte); - int reason = SSL_get_error(_ssl_connection, write_result); + int reason = SSL_get_error(_ssl_connection, (int) write_result); if (reason == SSL_ERROR_NONE) { nbyte -= write_result; @@ -382,7 +382,7 @@ namespace ix return read_result; } - int reason = SSL_get_error(_ssl_connection, read_result); + int reason = SSL_get_error(_ssl_connection, (int) read_result); if (reason == SSL_ERROR_WANT_READ || reason == SSL_ERROR_WANT_WRITE) {