mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-31 02:35:46 +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
@@ -99,7 +99,7 @@ static std::string Encode(const std::string_view& src)
|
||||
}
|
||||
else if (codepoint <= std::numeric_limits<uint16_t>::max())
|
||||
{
|
||||
dst.push_back((char)(uint8_t)0xFF);
|
||||
dst.push_back(static_cast<char>(static_cast<uint8_t>(0xFF)));
|
||||
dst.push_back((codepoint >> 8) & 0xFF);
|
||||
dst.push_back(codepoint & 0xFF);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user