Fixed misspelled byteswap function for big endian machines
authorJohn Naylor <[email protected]>
Fri, 19 Jan 2024 06:26:18 +0000 (13:26 +0700)
committerJohn Naylor <[email protected]>
Fri, 19 Jan 2024 06:26:18 +0000 (13:26 +0700)
Per members lora and mamba

src/include/common/hashfn_unstable.h

index b3c56db1c090acbb6be9507351c8e451eff8c491..3d927e1fb18ace6bc5317bd7db2ab18389232ff9 100644 (file)
@@ -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