From 6f79698b3592b650c42cc3bb2fa670f7ade70712 Mon Sep 17 00:00:00 2001 From: Aikawa Yataro Date: Thu, 28 Sep 2023 09:12:19 +0200 Subject: [PATCH] Fix swapped high and low offset basis values --- include/rapidjson/schema.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rapidjson/schema.h b/include/rapidjson/schema.h index 8dde06166..973e935f1 100644 --- a/include/rapidjson/schema.h +++ b/include/rapidjson/schema.h @@ -407,7 +407,7 @@ class Hasher { bool WriteBuffer(Type type, const void* data, size_t len) { // FNV-1a from http://isthe.com/chongo/tech/comp/fnv/ - uint64_t h = Hash(RAPIDJSON_UINT64_C2(0x84222325, 0xcbf29ce4), type); + uint64_t h = Hash(RAPIDJSON_UINT64_C2(0xcbf29ce4, 0x84222325), type); const unsigned char* d = static_cast(data); for (size_t i = 0; i < len; i++) h = Hash(h, d[i]);