Use appropriate format specifier for number of palettes

This commit is contained in:
ISSOtm
2024-08-02 21:59:51 +02:00
parent f4d0f01f91
commit 41046c287f
3 changed files with 3 additions and 3 deletions

View File

@@ -762,7 +762,7 @@ int main(int argc, char *argv[]) {
fprintf(stderr, "\tBit depth: %" PRIu8 "bpp\n", options.bitDepth);
if (options.trim != 0)
fprintf(stderr, "\tTrim the last %" PRIu64 " tiles\n", options.trim);
fprintf(stderr, "\tMaximum %" PRIu8 " palettes\n", options.nbPalettes);
fprintf(stderr, "\tMaximum %" PRIu16 " palettes\n", options.nbPalettes);
fprintf(stderr, "\tPalettes contain %" PRIu8 " colors\n", options.nbColorsPerPal);
fprintf(stderr, "\t%s palette spec\n", [] {
switch (options.palSpecType) {

View File

@@ -683,7 +683,7 @@ static void outputPalettes(std::vector<Palette> const &palettes) {
// If the palette generation is wrong, other (dependee) operations are likely to be
// nonsensical, so fatal-error outright
fatal(
"Generated %zu palettes, over the maximum of %" PRIu8,
"Generated %zu palettes, over the maximum of %" PRIu16,
palettes.size(),
options.nbPalettes
);

View File

@@ -191,7 +191,7 @@ void reverse() {
if (palettes.size() > options.nbPalettes) {
warning(
"Read %zu palettes, more than the specified limit of %" PRIu8,
"Read %zu palettes, more than the specified limit of %" PRIu16,
palettes.size(),
options.nbPalettes
);