Fix bad reading of bytes in ReadUnalignedLE64() (copy-paste error).

llvm-svn: 64355
This commit is contained in:
Ted Kremenek 2009-02-12 03:39:55 +00:00
parent 3280145da4
commit c6a2a37222
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}