From dd0a0cfc81fecacf2aed41b9eb138f850e43aab6 Mon Sep 17 00:00:00 2001 From: John Naylor Date: Fri, 19 Jan 2024 13:26:18 +0700 Subject: [PATCH] Fixed misspelled byteswap function for big endian machines Per members lora and mamba --- src/include/common/hashfn_unstable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/common/hashfn_unstable.h b/src/include/common/hashfn_unstable.h index b3c56db1c0..3d927e1fb1 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