]> granicus.if.org Git - postgresql/commitdiff
Try to repair poorly-considered code in previous commit.
authorRobert Haas <rhaas@postgresql.org>
Fri, 1 Sep 2017 03:09:00 +0000 (23:09 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 1 Sep 2017 03:09:00 +0000 (23:09 -0400)
src/backend/utils/adt/jsonb_op.c

index c4a7dc3f13a5fdb2b24a61430182cf9f75c6da1c..52a7e19a542f4f8b470216c8cffda1d6285a05ad 100644 (file)
@@ -313,10 +313,10 @@ jsonb_hash_extended(PG_FUNCTION_ARGS)
                {
                        /* Rotation is left to JsonbHashScalarValueExtended() */
                        case WJB_BEGIN_ARRAY:
-                               hash ^= ((UINT64CONST(JB_FARRAY) << 32) | UINT64CONST(JB_FARRAY));
+                               hash ^= ((uint64) JB_FARRAY) << 32 | JB_FARRAY;
                                break;
                        case WJB_BEGIN_OBJECT:
-                               hash ^= ((UINT64CONST(JB_FOBJECT) << 32) | UINT64CONST(JB_FOBJECT));
+                               hash ^= ((uint64) JB_FOBJECT) << 32 | JB_FOBJECT;
                                break;
                        case WJB_KEY:
                        case WJB_VALUE: