summaryrefslogtreecommitdiff
path: root/absl/hash
diff options
context:
space:
mode:
authorGravatar Milad Fa <mfarazma@redhat.com>2023-02-15 19:05:44 +0000
committerGravatar Milad Fa <mfarazma@redhat.com>2023-02-15 19:05:44 +0000
commit32794f0a4272bd4cc7ee5306999e9ff4180278d9 (patch)
tree335d5ac2ddb115cb45d2758010ecaa8ea9aa262c /absl/hash
parentb54044578175b6949fb151b4d8be9153d7093c31 (diff)
Fix Read1To3 on big Endian
Diffstat (limited to 'absl/hash')
-rw-r--r--absl/hash/internal/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/hash/internal/hash.h b/absl/hash/internal/hash.h
index eb50e2c7..b1452c4c 100644
--- a/absl/hash/internal/hash.h
+++ b/absl/hash/internal/hash.h
@@ -1083,7 +1083,7 @@ class ABSL_DLL MixingHashState : public HashStateBase<MixingHashState> {
unsigned char significant0 = mem0;
#else
unsigned char significant2 = mem0;
- unsigned char significant1 = mem1;
+ unsigned char significant1 = len == 2 ? mem0 : mem1;
unsigned char significant0 = mem2;
#endif
return static_cast<uint32_t>(significant0 | //