Run clang-format

This commit is contained in:
Rangi42
2024-09-25 13:15:58 -04:00
parent 7c74653aa1
commit 8037b9e10a
4 changed files with 8 additions and 5 deletions

View File

@@ -186,7 +186,8 @@ void FormatSpec::appendNumber(std::string &str, uint32_t value) const {
useExact = true; useExact = true;
} }
if (useType != 'X' && useType != 'x' && useType != 'b' && useType != 'o' && useType != 'f' && useExact) if (useType != 'X' && useType != 'x' && useType != 'b' && useType != 'o' && useType != 'f'
&& useExact)
error("Formatting type '%c' with exact flag '#'\n", useType); error("Formatting type '%c' with exact flag '#'\n", useType);
if (useType != 'f' && hasFrac) if (useType != 'f' && hasFrac)
error("Formatting type '%c' with fractional width\n", useType); error("Formatting type '%c' with fractional width\n", useType);

View File

@@ -389,7 +389,9 @@ void reverse() {
palmap = readInto(options.palmap); palmap = readInto(options.palmap);
if (palmap->size() != mapSize) { if (palmap->size() != mapSize) {
fatal( fatal(
"Palette map size (%zu tiles) doesn't match image size (%zu)", palmap->size(), mapSize "Palette map size (%zu tiles) doesn't match image size (%zu)",
palmap->size(),
mapSize
); );
} }
} }