Reorder the static_cast(s)

This commit is contained in:
Diavolo 2022-04-09 20:49:35 +02:00
parent f343b2da3f
commit 25a84bdb0a
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5

View File

@ -138,8 +138,8 @@ namespace Components
while (i < sizeof(out))
{
const auto value = *string;
const auto result = std::toupper(static_cast<unsigned char>(value));
out[i] = static_cast<char>(result);
const auto result = static_cast<char>(std::toupper(static_cast<unsigned char>(value)));
out[i] = result;
if (value != result)
changed = true;