aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Naylor <john.naylor@postgresql.org>2024-01-19 13:26:18 +0700
committerJohn Naylor <john.naylor@postgresql.org>2024-01-19 13:26:18 +0700
commitdd0a0cfc81fecacf2aed41b9eb138f850e43aab6 (patch)
tree03b1258fc19fe3faa3878e8c5d4a22ef226043ca /src
parent0aba2554409ee3251d7558567edd114d8ed36dcc (diff)
downloadpostgresql-dd0a0cfc81fecacf2aed41b9eb138f850e43aab6.tar.gz
postgresql-dd0a0cfc81fecacf2aed41b9eb138f850e43aab6.zip
Fixed misspelled byteswap function for big endian machines
Per members lora and mamba
Diffstat (limited to 'src')
-rw-r--r--src/include/common/hashfn_unstable.h2
1 files changed, 1 insertions, 1 deletions
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