@@ -2084,8 +2084,8 @@ bttext_abbrev_convert(Datum original, SortSupport ssup)
2084
2084
* in order to compensate for cases where differences are past
2085
2085
* PG_CACHE_LINE_SIZE bytes, so as to limit the overhead of hashing.
2086
2086
*/
2087
- hash = hash_any ((unsignedchar * )authoritative_data ,
2088
- Min (len ,PG_CACHE_LINE_SIZE ));
2087
+ hash = DatumGetUInt32 ( hash_any ((unsignedchar * )authoritative_data ,
2088
+ Min (len ,PG_CACHE_LINE_SIZE ) ));
2089
2089
2090
2090
if (len > PG_CACHE_LINE_SIZE )
2091
2091
hash ^=DatumGetUInt32 (hash_uint32 ((uint32 )len ));
@@ -2100,10 +2100,10 @@ bttext_abbrev_convert(Datum original, SortSupport ssup)
2100
2100
2101
2101
lohalf = (uint32 )res ;
2102
2102
hihalf = (uint32 ) (res >>32 );
2103
- hash = hash_uint32 (lohalf ^hihalf );
2103
+ hash = DatumGetUInt32 ( hash_uint32 (lohalf ^hihalf ) );
2104
2104
}
2105
2105
#else /* SIZEOF_DATUM != 8 */
2106
- hash = hash_uint32 ((uint32 )res );
2106
+ hash = DatumGetUInt32 ( hash_uint32 ((uint32 )res ) );
2107
2107
#endif
2108
2108
2109
2109
addHyperLogLog (& tss -> abbr_card ,hash );