mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 02:28:53 +08:00
nghttpx: C++ style cast
This commit is contained in:
@@ -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(identity), std::end(identity), identity_out) = '\0';
|
||||||
std::copy(std::begin(secret), std::end(secret), psk);
|
std::copy(std::begin(secret), std::end(secret), psk);
|
||||||
|
|
||||||
return (unsigned int)secret.size();
|
return static_cast<unsigned int>(secret.size());
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
#endif // !LIBRESSL_IN_USE
|
#endif // !LIBRESSL_IN_USE
|
||||||
|
|||||||
Reference in New Issue
Block a user