diff -r 3aae6275b683 -r 8cf3812a92eb CLIParser.h --- a/CLIParser.h Sat Jan 06 01:04:15 2024 +0100 +++ b/CLIParser.h Tue Oct 08 22:24:40 2024 +0200 @@ -48,7 +48,7 @@ parseHexColor(const std::string& hex) { size_t count; unsigned long rgb = std::stoul(hex, &count, 16); - if (count == 6 || count == 8 && hex.starts_with("0x")) return rgb; + if (count == 6 || (count == 8 && hex.starts_with("0x"))) return rgb; else throw std::logic_error("Invalid hex color string"); // the input should be (0x)?[0-9a-fA-F]{6}, however: // values like 0x0123 are also accepted and interpreted as 000123