Fix compiler warning seen on 64-bit machine.

This commit is contained in:
Tom Lane 2011-12-17 16:51:36 -05:00
parent 8daeb5ddd6
commit 85df5dbf5a

View File

@ -832,7 +832,7 @@ SpGistPageAddNewItem(SpGistState *state, Page page, Item item, Size size,
} }
else else
elog(PANIC, "failed to add item of size %u to SPGiST index page", elog(PANIC, "failed to add item of size %u to SPGiST index page",
size); (int) size);
return offnum; return offnum;
} }
@ -844,7 +844,7 @@ SpGistPageAddNewItem(SpGistState *state, Page page, Item item, Size size,
if (offnum == InvalidOffsetNumber && !errorOK) if (offnum == InvalidOffsetNumber && !errorOK)
elog(ERROR, "failed to add item of size %u to SPGiST index page", elog(ERROR, "failed to add item of size %u to SPGiST index page",
size); (int) size);
return offnum; return offnum;
} }