]> granicus.if.org Git - postgresql/commitdiff
Fix compiler warning seen on 64-bit machine.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 17 Dec 2011 21:51:36 +0000 (16:51 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 17 Dec 2011 21:51:36 +0000 (16:51 -0500)
src/backend/access/spgist/spgutils.c

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