Reorder the static_cast(s)
This commit is contained in:
parent
f343b2da3f
commit
25a84bdb0a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user