mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
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
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user