8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec5affd commit 2d1f3bcCopy full SHA for 2d1f3bc
src/backend/utils/adt/acl.c
@@ -626,9 +626,9 @@ aclitemout(PG_FUNCTION_ARGS)
626
627
for (i = 0; i < N_ACL_RIGHTS; ++i)
628
{
629
- if (ACLITEM_GET_PRIVS(*aip) & (1 << i))
+ if (ACLITEM_GET_PRIVS(*aip) & (UINT64CONST(1) << i))
630
*p++ = ACL_ALL_RIGHTS_STR[i];
631
- if (ACLITEM_GET_GOPTIONS(*aip) & (1 << i))
+ if (ACLITEM_GET_GOPTIONS(*aip) & (UINT64CONST(1) << i))
632
*p++ = '*';
633
}
634
@@ -1786,7 +1786,7 @@ aclexplode(PG_FUNCTION_ARGS)
1786
break;
1787
1788
aidata = &aidat[idx[0]];
1789
- priv_bit = 1 << idx[1];
+ priv_bit = UINT64CONST(1) << idx[1];
1790
1791
if (ACLITEM_GET_PRIVS(*aidata) & priv_bit)
1792
0 commit comments