Skip to content

Commit

Permalink
fix lzss
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Sep 30, 2018
1 parent 1837fa8 commit b6cd80d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lzss/lzss.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func Decompress(src []byte) []byte {
break
}
c = int(bite)
flags = uint(c | 0xFF00) /* uses higher byte cleverly */
} /* to count eight */
flags = uint(c | 0xFF00) /* uses higher byte cleverly to count eight*/
}

if flags&1 != 0 {
bite, err := srcBuf.ReadByte()
Expand Down Expand Up @@ -65,8 +65,8 @@ func Decompress(src []byte) []byte {
for k := 0; k <= j; k++ {
c = int(textBuf[(i+k)&(N-1)])
dst.WriteByte(byte(c))
r++
textBuf[r] = byte(c)
r++
r &= (N - 1)
}
}
Expand Down

0 comments on commit b6cd80d

Please sign in to comment.