Skip to content
Snippets Groups Projects
Commit d9b9289c authored by Tom Lane's avatar Tom Lane
Browse files

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
parent be44ed27
No related branches found
No related tags found
No related merge requests found
...@@ -234,7 +234,8 @@ ginvalidate(Oid opclassoid) ...@@ -234,7 +234,8 @@ ginvalidate(Oid opclassoid)
/* Check that the originally-named opclass is complete */ /* Check that the originally-named opclass is complete */
for (i = 1; i <= GINNProcs; i++) for (i = 1; i <= GINNProcs; i++)
{ {
if (opclassgroup && (opclassgroup->functionset & (1 << i)) != 0) if (opclassgroup &&
(opclassgroup->functionset & (((uint64) 1) << i)) != 0)
continue; /* got it */ continue; /* got it */
if (i == GIN_COMPARE_PARTIAL_PROC) if (i == GIN_COMPARE_PARTIAL_PROC)
continue; /* optional method */ continue; /* optional method */
......
...@@ -254,7 +254,8 @@ gistvalidate(Oid opclassoid) ...@@ -254,7 +254,8 @@ gistvalidate(Oid opclassoid)
/* Check that the originally-named opclass is complete */ /* Check that the originally-named opclass is complete */
for (i = 1; i <= GISTNProcs; i++) for (i = 1; i <= GISTNProcs; i++)
{ {
if (opclassgroup && (opclassgroup->functionset & (1 << i)) != 0) if (opclassgroup &&
(opclassgroup->functionset & (((uint64) 1) << i)) != 0)
continue; /* got it */ continue; /* got it */
if (i == GIST_DISTANCE_PROC || i == GIST_FETCH_PROC) if (i == GIST_DISTANCE_PROC || i == GIST_FETCH_PROC)
continue; /* optional methods */ continue; /* optional methods */
......
...@@ -213,7 +213,7 @@ spgvalidate(Oid opclassoid) ...@@ -213,7 +213,7 @@ spgvalidate(Oid opclassoid)
for (i = 1; i <= SPGISTNProc; i++) for (i = 1; i <= SPGISTNProc; i++)
{ {
if ((thisgroup->functionset & (1 << i)) != 0) if ((thisgroup->functionset & (((uint64) 1) << i)) != 0)
continue; /* got it */ continue; /* got it */
ereport(INFO, ereport(INFO,
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION), (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment