From 85df5dbf5ac56f75cf9e23fe4504f2e672893f30 Mon Sep 17 00:00:00 2001
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Sat, 17 Dec 2011 16:51:36 -0500
Subject: [PATCH] Fix compiler warning seen on 64-bit machine.

---
 src/backend/access/spgist/spgutils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backend/access/spgist/spgutils.c b/src/backend/access/spgist/spgutils.c
index d6c01a5f842..c6bf07a9424 100644
--- a/src/backend/access/spgist/spgutils.c
+++ b/src/backend/access/spgist/spgutils.c
@@ -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;
 }
-- 
GitLab