git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0aba255)
Fixed misspelled byteswap function for big endian machines
2024年1月19日 06:26:18 +0000 (13:26 +0700)
2024年1月19日 06:26:18 +0000 (13:26 +0700)
Per members lora and mamba


diff --git a/src/include/common/hashfn_unstable.h b/src/include/common/hashfn_unstable.h
index b3c56db1c090acbb6be9507351c8e451eff8c491..3d927e1fb18ace6bc5317bd7db2ab18389232ff9 100644 (file)
--- 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
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /