Skip to content

Commit

Permalink
build fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
llSourcell committed Sep 12, 2014
1 parent 02deb3c commit 94b8f1d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions importer/splitting.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,21 @@ func Rabin(b []byte) [][]byte {
poly = (poly * prime) + cur
curchecksum -= (uint64(b[i-1]) * prime)

if i-blkgBegI >= chunkMax {
if i-blkBegI >= chunkMax {
// push block
out = append(out, b[blkgBegI:i])
blkgBegI = i
out = append(out, b[blkBegI:i])
blkBegI = i
}

// first 13 bits of polynomial are 0
if poly%8192 == 0 && i-blkgBegI >= minBlkSize {
if poly%8192 == 0 && i-blkBegI >= minBlkSize {
// push block
out = append(out, b[blkgBegI:i])
blkgBegI = i
out = append(out, b[blkBegI:i])
blkBegI = i
}
}
if i > blkgBegI {
out = append(out, b[blkgBegI:])
if i > blkBegI {
out = append(out, b[blkBegI:])
}
return out
}

0 comments on commit 94b8f1d

Please sign in to comment.