Skip to content

Commit c02ef23

Browse files
committed
Add missing calls to DatumGetUInt32.
These were inadvertently ommitted from the commit that introduced abbreviated keys, commit 4ea51cd. Peter Geoghegan
1 parent 62e2a8d commit c02ef23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/utils/adt/varlena.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2084,8 +2084,8 @@ bttext_abbrev_convert(Datum original, SortSupport ssup)
20842084
* in order to compensate for cases where differences are past
20852085
* PG_CACHE_LINE_SIZE bytes, so as to limit the overhead of hashing.
20862086
*/
2087-
hash = hash_any((unsigned char *) authoritative_data,
2088-
Min(len, PG_CACHE_LINE_SIZE));
2087+
hash = DatumGetUInt32(hash_any((unsigned char *) authoritative_data,
2088+
Min(len, PG_CACHE_LINE_SIZE)));
20892089

20902090
if (len > PG_CACHE_LINE_SIZE)
20912091
hash ^= DatumGetUInt32(hash_uint32((uint32) len));
@@ -2100,10 +2100,10 @@ bttext_abbrev_convert(Datum original, SortSupport ssup)
21002100

21012101
lohalf = (uint32) res;
21022102
hihalf = (uint32) (res >> 32);
2103-
hash = hash_uint32(lohalf ^ hihalf);
2103+
hash = DatumGetUInt32(hash_uint32(lohalf ^ hihalf));
21042104
}
21052105
#else /* SIZEOF_DATUM != 8 */
2106-
hash = hash_uint32((uint32) res);
2106+
hash = DatumGetUInt32(hash_uint32((uint32) res));
21072107
#endif
21082108

21092109
addHyperLogLog(&tss->abbr_card, hash);

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