diff options
-rw-r--r-- | server_wss.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server_wss.hpp b/server_wss.hpp index d057d1c..bcfe7fe 100644 --- a/server_wss.hpp +++ b/server_wss.hpp @@ -49,7 +49,7 @@ namespace SimpleWeb { auto session_id_context = std::to_string(acceptor->local_endpoint().port()) + ':'; session_id_context.append(config.address.rbegin(), config.address.rend()); SSL_CTX_set_session_id_context(context.native_handle(), reinterpret_cast<const unsigned char *>(session_id_context.data()), - std::min<std::size_t>(session_id_context.size(), SSL_MAX_SSL_SESSION_ID_LENGTH)); + static_cast<unsigned int>(std::min<std::size_t>(session_id_context.size(), SSL_MAX_SSL_SESSION_ID_LENGTH))); } } |