mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-11-24 00:55:41 +00:00
cksum: golint
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
b3198b462b
commit
bdf5887f64
1 changed files with 1 additions and 1 deletions
2
cksum.go
2
cksum.go
|
@ -10,7 +10,7 @@ const posixPolynomial uint32 = 0x04C11DB7
|
||||||
func cksum(r io.Reader) (uint32, int, error) {
|
func cksum(r io.Reader) (uint32, int, error) {
|
||||||
in := bufio.NewReader(r)
|
in := bufio.NewReader(r)
|
||||||
count := 0
|
count := 0
|
||||||
var sum uint32 = 0
|
var sum uint32
|
||||||
f := func(b byte) {
|
f := func(b byte) {
|
||||||
for i := 7; i >= 0; i-- {
|
for i := 7; i >= 0; i-- {
|
||||||
msb := sum & (1 << 31)
|
msb := sum & (1 << 31)
|
||||||
|
|
Loading…
Reference in a new issue