mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +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:
@ -213,7 +213,7 @@ spgvalidate(Oid opclassoid)
|
||||
|
||||
for (i = 1; i <= SPGISTNProc; i++)
|
||||
{
|
||||
if ((thisgroup->functionset & (1 << i)) != 0)
|
||||
if ((thisgroup->functionset & (((uint64) 1) << i)) != 0)
|
||||
continue; /* got it */
|
||||
ereport(INFO,
|
||||
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
|
||||
|
Reference in New Issue
Block a user