mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +03:00
Fix incorrect format placeholders
Before commita0ed19e0a9
there was a cast around these, but the cast inadvertently changed the signedness, but that made the format placeholder correct. Commita0ed19e0a9
removed the casts, so now the format placeholders had the wrong signedness.
This commit is contained in:
@ -3185,7 +3185,7 @@ printTableInit(printTableContent *const content, const printTableOpt *opt,
|
||||
/* Catch possible overflow. Using >= here allows adding 1 below */
|
||||
if (total_cells >= SIZE_MAX / sizeof(*content->cells))
|
||||
{
|
||||
fprintf(stderr, _("Cannot print table contents: number of cells %" PRId64 " is equal to or exceeds maximum %zu.\n"),
|
||||
fprintf(stderr, _("Cannot print table contents: number of cells %" PRIu64 " is equal to or exceeds maximum %zu.\n"),
|
||||
total_cells,
|
||||
SIZE_MAX / sizeof(*content->cells));
|
||||
exit(EXIT_FAILURE);
|
||||
@ -3269,7 +3269,7 @@ printTableAddCell(printTableContent *const content, char *cell,
|
||||
total_cells = (uint64) content->ncolumns * content->nrows;
|
||||
if (content->cellsadded >= total_cells)
|
||||
{
|
||||
fprintf(stderr, _("Cannot add cell to table content: total cell count of %" PRId64 " exceeded.\n"),
|
||||
fprintf(stderr, _("Cannot add cell to table content: total cell count of %" PRIu64 " exceeded.\n"),
|
||||
total_cells);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user