1
0
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:
Michał Janiszewski
2020-04-22 17:09:29 +02:00
committed by GitHub
parent cfd94d4fa5
commit 2323cc1596
114 changed files with 604 additions and 560 deletions

View File

@@ -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");