aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/bunzip.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bunzip.c b/lib/bunzip.c
index 74e7b172..9a0ec6d8 100644
--- a/lib/bunzip.c
+++ b/lib/bunzip.c
@@ -316,8 +316,7 @@ int read_bunzip_data(bunzip_data *bd)
the basic or 0/1 method (except all bits 0, which would use no
symbols, but a run of length 0 doesn't mean anything in this
context). Thus space is saved. */
- if (nextSym == SYMBOL_RUNA) t += runPos;
- else t += 2*runPos;
+ t += (runPos << nextSym); // +runPos if RUNA; +2*runPos if RUNB
runPos <<= 1;
continue;
}