postgres.git / summary / log / commit / refs

commit    dd0a0cfc81fecacf2aed41b9eb138f850e43aab6
Author:   John Naylor <john.naylor@postgresql.org>
Date:     Fri Jan 19 06:26:18 2024 +0000
First released in: 17.0

    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 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 [parent: 0aba2554409e]