Reorder the static_cast(s)
This commit is contained in:
parent
f343b2da3f
commit
25a84bdb0a
@ -138,8 +138,8 @@ namespace Components
|
|||||||
while (i < sizeof(out))
|
while (i < sizeof(out))
|
||||||
{
|
{
|
||||||
const auto value = *string;
|
const auto value = *string;
|
||||||
const auto result = std::toupper(static_cast<unsigned char>(value));
|
const auto result = static_cast<char>(std::toupper(static_cast<unsigned char>(value)));
|
||||||
out[i] = static_cast<char>(result);
|
out[i] = result;
|
||||||
|
|
||||||
if (value != result)
|
if (value != result)
|
||||||
changed = true;
|
changed = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user