File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments