@@ -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 ((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 ) ));
20892089
20902090if (len > PG_CACHE_LINE_SIZE )
20912091hash ^=DatumGetUInt32 (hash_uint32 ((uint32 )len ));
@@ -2100,10 +2100,10 @@ bttext_abbrev_convert(Datum original, SortSupport ssup)
21002100
21012101lohalf = (uint32 )res ;
21022102hihalf = (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
21092109addHyperLogLog (& tss -> abbr_card ,hash );