Skip to content

Commit 32794f0

Browse files
author
Milad Fa
committed
Fix Read1To3 on big Endian
1 parent b540445 commit 32794f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

absl/hash/internal/hash.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ class ABSL_DLL MixingHashState : public HashStateBase<MixingHashState> {
10831083
unsigned char significant0 = mem0;
10841084
#else
10851085
unsigned char significant2 = mem0;
1086-
unsigned char significant1 = mem1;
1086+
unsigned char significant1 = len == 2 ? mem0 : mem1;
10871087
unsigned char significant0 = mem2;
10881088
#endif
10891089
return static_cast<uint32_t>(significant0 | //

0 commit comments

Comments
 (0)