]> Cypherpunks repositories - gostls13.git/commitdiff
compress/bzip2: s/repeat_power/repeatPower/
authorDavid Crawshaw <crawshaw@golang.org>
Fri, 19 Dec 2014 00:47:29 +0000 (19:47 -0500)
committerDavid Crawshaw <crawshaw@golang.org>
Fri, 19 Dec 2014 01:29:00 +0000 (01:29 +0000)
Change-Id: I64c8c247acd5d134b2f17ed7aab0a035d7710679
Reviewed-on: https://go-review.googlesource.com/1804
Reviewed-by: Minux Ma <minux@golang.org>
src/compress/bzip2/bzip2.go

index 15575d22023e431aa65e392c6a9d8c5412434982..689795727089d9b16b1e740f9ef1b390a11cd1ac 100644 (file)
@@ -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.