build fixed
Siraj Ravel committed
Sep 12, 2014 at 09:30 UTC
94b8f1d22bea077c2dda2b2013c9bd8100b08725
1 file changed
+8
-8
importer/splitting.go
+8
-8
@@ -64,21 +64,21 @@ func Rabin(b []byte) [][]byte {
64
poly = (poly * prime) + cur
65
curchecksum -= (uint64(b[i-1]) * prime)
66
67
- if i-blkgBegI >= chunkMax {
67
+ if i-blkBegI >= chunkMax {
68
// push block
69
- out = append(out, b[blkgBegI:i])
70
- blkgBegI = i
69
+ out = append(out, b[blkBegI:i])
70
+ blkBegI = i
71
}
72
73
// first 13 bits of polynomial are 0
74
- if poly%8192 == 0 && i-blkgBegI >= minBlkSize {
74
+ if poly%8192 == 0 && i-blkBegI >= minBlkSize {
75
// push block
76
- out = append(out, b[blkgBegI:i])
77
- blkgBegI = i
76
+ out = append(out, b[blkBegI:i])
77
+ blkBegI = i
78
}
79
}
80
- if i > blkgBegI {
81
- out = append(out, b[blkgBegI:])
80
+ if i > blkBegI {
81
+ out = append(out, b[blkBegI:])
82
}
83
return out
84
}