Skip to content

Fixes C4267 MSVC warning in server_https.hpp

Vlad Lipskiy requested to merge Eswcvlad/Simple-Web-Server:master into master

Though result of std::min is upper bound with SSL_MAX_SSL_SESSION_ID_LENGTH, which easily fits into the unsigned int length argument of SSL_CTX_set_session_id_context, MSVC still worries that it could be truncated with a size_t -> unsigned cast. So an explicit cast was added.

Merge request reports