mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 04:53:12 +01:00
Use named casts instead of old-style casts
Change prepared with clang-tidy and google-readability-casting check
This commit is contained in:
committed by
GitHub
parent
cfd94d4fa5
commit
2323cc1596
@@ -183,7 +183,7 @@ private:
|
||||
{
|
||||
// Read PEM data via BIO buffer
|
||||
// HACK first parameter is not const on MINGW for some reason
|
||||
auto bio = BIO_new_mem_buf((void*)pem.data(), (int)pem.size());
|
||||
auto bio = BIO_new_mem_buf((void*)pem.data(), static_cast<int>(pem.size()));
|
||||
if (bio == nullptr)
|
||||
{
|
||||
throw std::runtime_error("BIO_new_mem_buf failed");
|
||||
|
||||
Reference in New Issue
Block a user