From 6960039aee09443e6b7962cd5f73ef3e84a23cd8 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 16 Feb 2017 23:02:19 +0900 Subject: [PATCH] nghttpx: C++ style cast --- src/shrpx_ssl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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