diff --git a/src/framework/util/color.cpp b/src/framework/util/color.cpp index f120ed0cb2..9b083f6d46 100644 --- a/src/framework/util/color.cpp +++ b/src/framework/util/color.cpp @@ -133,9 +133,8 @@ namespace { inline std::string to_lower_ascii(std::string_view s) { std::string out(s); - for (char &c : out) - if (c >= 'A' && c <= 'Z') - c |= 0x20; + for (char& c : out) + c += (c >= 'A' && c <= 'Z') ? 0x20 : 0; return out; }