diff options
-rw-r--r-- | lib/Lex/PTHLexer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Lex/PTHLexer.cpp b/lib/Lex/PTHLexer.cpp index 64ddb925c8..8e789d9348 100644 --- a/lib/Lex/PTHLexer.cpp +++ b/lib/Lex/PTHLexer.cpp @@ -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; } |