]> granicus.if.org Git - postgresql/commitdiff
Fix 64-bit problem in recent patch.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Jun 2008 01:41:37 +0000 (01:41 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Jun 2008 01:41:37 +0000 (01:41 +0000)
src/backend/access/gist/gistutil.c

index ef60b6b96d1061e67d037d1d136b778ca0c9db5b..cb0cb52c5a8e5e45526009d6c3ef3c14ff5d1283 100644 (file)
@@ -8,7 +8,7 @@
  * Portions Copyright (c) 1994, Regents of the University of California
  *
  * IDENTIFICATION
- *                     $PostgreSQL: pgsql/src/backend/access/gist/gistutil.c,v 1.27 2008/06/12 09:12:29 heikki Exp $
+ *                     $PostgreSQL: pgsql/src/backend/access/gist/gistutil.c,v 1.28 2008/06/15 01:41:37 tgl Exp $
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"
@@ -45,7 +45,7 @@ gistfillbuffer(Page page, IndexTuple *itup, int len, OffsetNumber off)
                l = PageAddItem(page, (Item) itup[i], sz, off, false, false);
                if (l == InvalidOffsetNumber)
                        elog(ERROR, "failed to add item to GiST index page, item %d out of %d, size %d bytes",
-                                i, len, sz);
+                                i, len, (int) sz);
                off++;
        }
 }