From d9b9289c837a98b78b948b597fabd9ab0a96c0db Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 21 Jan 2016 21:14:07 -0500 Subject: Suppress compiler warning. Given the limited range of i, these shifts should not cause any problem, but that apparently doesn't stop some compilers from whining about them. David Rowley --- src/backend/access/gist/gistvalidate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/backend/access/gist/gistvalidate.c') diff --git a/src/backend/access/gist/gistvalidate.c b/src/backend/access/gist/gistvalidate.c index 190b9787bb7..d3ada703f30 100644 --- a/src/backend/access/gist/gistvalidate.c +++ b/src/backend/access/gist/gistvalidate.c @@ -254,7 +254,8 @@ gistvalidate(Oid opclassoid) /* Check that the originally-named opclass is complete */ for (i = 1; i <= GISTNProcs; i++) { - if (opclassgroup && (opclassgroup->functionset & (1 << i)) != 0) + if (opclassgroup && + (opclassgroup->functionset & (((uint64) 1) << i)) != 0) continue; /* got it */ if (i == GIST_DISTANCE_PROC || i == GIST_FETCH_PROC) continue; /* optional methods */ -- cgit v1.2.3