mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +00:00
really fix an off-by-one error
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96845 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5ce9d0b606
commit
860d4a787f
@ -137,7 +137,7 @@ static unsigned EmitVBRValue(unsigned Val, raw_ostream &OS) {
|
||||
|
||||
unsigned InVal = Val;
|
||||
unsigned NumBytes = 0;
|
||||
while (Val > 128) {
|
||||
while (Val >= 128) {
|
||||
OS << (Val&127) << "|128,";
|
||||
Val >>= 7;
|
||||
++NumBytes;
|
||||
|
Loading…
x
Reference in New Issue
Block a user