Commit 895e4b85 authored by David Crawshaw's avatar David Crawshaw

compress/bzip2: s/repeat_power/repeatPower/

Change-Id: I64c8c247acd5d134b2f17ed7aab0a035d7710679
Reviewed-on: https://go-review.googlesource.com/1804Reviewed-by: 's avatarMinux Ma <minux@golang.org>
parent c5089a7a
......@@ -353,7 +353,7 @@ func (bz2 *reader) readBlock() (err error) {
// variables accumulate the repeat count. See the Wikipedia page for
// details.
repeat := 0
repeat_power := 0
repeatPower := 0
// The `C' array (used by the inverse BWT) needs to be zero initialized.
for i := range bz2.c {
......@@ -380,10 +380,10 @@ func (bz2 *reader) readBlock() (err error) {
if v < 2 {
// This is either the RUNA or RUNB symbol.
if repeat == 0 {
repeat_power = 1
repeatPower = 1
}
repeat += repeat_power << v
repeat_power <<= 1
repeat += repeatPower << v
repeatPower <<= 1
// This limit of 2 million comes from the bzip2 source
// code. It prevents repeat from overflowing.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment