diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-01-21 21:14:07 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-01-21 21:14:07 -0500 |
commit | d9b9289c837a98b78b948b597fabd9ab0a96c0db (patch) | |
tree | 61348ef6f0101d7f4bcdebcd8fd9342296c09192 /src/backend/access/gist | |
parent | be44ed27b86ebd165bbedf06a4ac5a8eb943d43c (diff) | |
download | postgresql-d9b9289c837a98b78b948b597fabd9ab0a96c0db.tar.gz |
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
Diffstat (limited to 'src/backend/access/gist')
-rw-r--r-- | src/backend/access/gist/gistvalidate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/access/gist/gistvalidate.c b/src/backend/access/gist/gistvalidate.c index 190b9787bb..d3ada703f3 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 */ |