Skip to content

Commit

Permalink
Merge pull request #9 from clarkduvall/go-fmt
Browse files Browse the repository at this point in the history
go fmt
  • Loading branch information
clarkduvall committed Mar 24, 2015
2 parents c5d2885 + b4c19db commit af138ec
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions compressed.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,17 @@ func (v *variableLengthList) Iter() *iterator {
func (v variableLengthList) decode(i int, last uint32) (uint32, int) {
var x uint32
j := i
for ; v[j] & 0x80 != 0; j++ {
x |= uint32(v[j] & 0x7f) << (uint(j - i) * 7)
for ; v[j]&0x80 != 0; j++ {
x |= uint32(v[j]&0x7f) << (uint(j-i) * 7)
}
x |= uint32(v[j]) << (uint(j - i) * 7)
x |= uint32(v[j]) << (uint(j-i) * 7)
return x, j + 1
}

func (v variableLengthList) Append(x uint32) variableLengthList {
for x & 0xffffff80 != 0 {
v = append(v, uint8((x & 0x7f) | 0x80))
for x&0xffffff80 != 0 {
v = append(v, uint8((x&0x7f)|0x80))
x >>= 7
}
return append(v, uint8(x & 0x7f))
return append(v, uint8(x&0x7f))
}

0 comments on commit af138ec

Please sign in to comment.