From: John Naylor Date: Fri, 19 Jan 2024 06:26:18 +0000 (+0700) Subject: Fixed misspelled byteswap function for big endian machines X-Git-Tag: REL_17_BETA1~1067 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=dd0a0cfc81fecacf2aed41b9eb138f850e43aab6;p=postgresql.git Fixed misspelled byteswap function for big endian machines Per members lora and mamba --- diff --git a/src/include/common/hashfn_unstable.h b/src/include/common/hashfn_unstable.h index b3c56db1c09..3d927e1fb18 100644 --- a/src/include/common/hashfn_unstable.h +++ b/src/include/common/hashfn_unstable.h @@ -225,7 +225,7 @@ fasthash_accum_cstring_aligned(fasthash_state *hs, const char *str) * without either swapping or a bytewise check. */ #ifdef WORDS_BIGENDIAN - zero_bytes_le = haszero64(pg_bswap(chunk)); + zero_bytes_le = haszero64(pg_bswap64(chunk)); #else zero_bytes_le = haszero64(chunk); #endif