forked from OSchip/llvm-project
Fix bad reading of bytes in ReadUnalignedLE64() (copy-paste error).
llvm-svn: 64355
This commit is contained in:
parent
3280145da4
commit
c6a2a37222
|
@ -55,10 +55,10 @@ static inline uint64_t ReadUnalignedLE64(const unsigned char *&Data) {
|
|||
((uint64_t)Data[1] << 8) |
|
||||
((uint64_t)Data[2] << 16) |
|
||||
((uint64_t)Data[3] << 24) |
|
||||
((uint64_t)Data[1] << 32) |
|
||||
((uint64_t)Data[2] << 40) |
|
||||
((uint64_t)Data[3] << 48) |
|
||||
((uint64_t)Data[3] << 56);
|
||||
((uint64_t)Data[4] << 32) |
|
||||
((uint64_t)Data[5] << 40) |
|
||||
((uint64_t)Data[6] << 48) |
|
||||
((uint64_t)Data[7] << 56);
|
||||
Data += 8;
|
||||
return V;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue