diff --git a/src/shrpx_ssl.cc b/src/shrpx_ssl.cc index e992589c..56280faa 100644 --- a/src/shrpx_ssl.cc +++ b/src/shrpx_ssl.cc @@ -606,7 +606,7 @@ unsigned int psk_client_cb(SSL *ssl, const char *hint, char *identity_out, *std::copy(std::begin(identity), std::end(identity), identity_out) = '\0'; std::copy(std::begin(secret), std::end(secret), psk); - return (unsigned int)secret.size(); + return static_cast(secret.size()); } } // namespace #endif // !LIBRESSL_IN_USE