aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/unicode_norm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/unicode_norm.c b/src/common/unicode_norm.c
index 626645ac870..4bb6a0f5873 100644
--- a/src/common/unicode_norm.c
+++ b/src/common/unicode_norm.c
@@ -23,6 +23,7 @@
#ifndef FRONTEND
#include "common/unicode_normprops_table.h"
#endif
+#include "port/pg_bswap.h"
#ifndef FRONTEND
#define ALLOC(size) palloc(size)
@@ -475,7 +476,7 @@ qc_hash_lookup(pg_wchar ch, const pg_unicode_norminfo *norminfo)
* Compute the hash function. The hash key is the codepoint with the bytes
* in network order.
*/
- hashkey = htonl(ch);
+ hashkey = pg_hton32(ch);
h = norminfo->hash(&hashkey);
/* An out-of-range result implies no match */