Skip to content

Commit

Permalink
Fix swapped high and low offset basis values
Browse files Browse the repository at this point in the history
  • Loading branch information
aikawayataro authored and miloyip committed Sep 28, 2023
1 parent eee82cb commit 6f79698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rapidjson/schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<const unsigned char*>(data);
for (size_t i = 0; i < len; i++)
h = Hash(h, d[i]);
Expand Down

0 comments on commit 6f79698

Please sign in to comment.