mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Use appropriate format specifier for number of palettes
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user