Skip to content

Commit

Permalink
fix compressGroup counter calculation
Browse files Browse the repository at this point in the history
lukechampine committed May 2, 2024

Verified

This commit was signed with the committer’s verified signature.
messense messense
1 parent cfb705a commit 5281ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bao.go
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@ func compressGroup(p []byte, counter uint64) node {
buflen += n
p = p[n:]
}
n := compressBuffer(&buf, buflen, &iv, counter+sc, 0)
n := compressBuffer(&buf, buflen, &iv, counter+(sc*maxSIMD), 0)
for i := bits.TrailingZeros64(sc); i < bits.Len64(sc); i++ {
if sc&(1<<i) != 0 {
n = parentNode(stack[i], chainingValue(n), iv, 0)

0 comments on commit 5281ae2

Please sign in to comment.