Avoid writing "XXX" since it's a conventional "TODO/FIXME" comment

This commit is contained in:
Rangi
2026-01-22 13:01:10 -05:00
parent ade898d815
commit d053025070
3 changed files with 7 additions and 7 deletions

View File

@@ -409,10 +409,10 @@ static std::pair<std::vector<size_t>, std::vector<Palette>>
}
auto listColors = [](auto const &list) {
static char buf[sizeof(", $XXXX, $XXXX, $XXXX, $XXXX")];
static char buf[sizeof(", $xxxx, $xxxx, $xxxx, $xxxx")];
char *ptr = buf;
for (uint16_t color : list) {
ptr += snprintf(ptr, sizeof(", $XXXX"), ", $%04x", color);
ptr += snprintf(ptr, sizeof(", $xxxx"), ", $%04x", color);
}
return &buf[literal_strlen(", ")];
};