mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
Fix a subtle bug that prevented round-tripping 470.lbm
llvm-svn: 36825
This commit is contained in:
parent
309864cdfb
commit
2753e54f7b
@ -105,7 +105,7 @@ public:
|
||||
|
||||
/// GetCurrentBitNo - Return the bit # of the bit we are reading.
|
||||
uint64_t GetCurrentBitNo() const {
|
||||
return (NextChar-FirstChar)*8 + (32-BitsInCurWord);
|
||||
return (NextChar-FirstChar)*8 + ((32-BitsInCurWord) & 31);
|
||||
}
|
||||
|
||||
/// JumpToBit - Reset the stream to the specified bit number.
|
||||
|
Loading…
x
Reference in New Issue
Block a user