Skip to content

Commit 0d9506d

Browse files
committed
Try to repair poorly-considered code in previous commit.
1 parent 81c5e46 commit 0d9506d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/jsonb_op.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,10 @@ jsonb_hash_extended(PG_FUNCTION_ARGS)
313313
{
314314
/* Rotation is left to JsonbHashScalarValueExtended() */
315315
case WJB_BEGIN_ARRAY:
316-
hash ^= ((UINT64CONST(JB_FARRAY) << 32) | UINT64CONST(JB_FARRAY));
316+
hash ^= ((uint64) JB_FARRAY) << 32 | JB_FARRAY;
317317
break;
318318
case WJB_BEGIN_OBJECT:
319-
hash ^= ((UINT64CONST(JB_FOBJECT) << 32) | UINT64CONST(JB_FOBJECT));
319+
hash ^= ((uint64) JB_FOBJECT) << 32 | JB_FOBJECT;
320320
break;
321321
case WJB_KEY:
322322
case WJB_VALUE:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy