Skip to content

Commit

Permalink
Merge pull request #25 from agtabesh/fix/fix-buckets-size
Browse files Browse the repository at this point in the history
fix: fix `index out of range` error in calculating buckets
  • Loading branch information
agtabesh authored Mar 15, 2024
2 parents 92bf406 + e14d614 commit 1c3e3df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions types/signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ func (s Signature) Buckets() Buckets {
}
buckets[i] = sum
i += 1
if i == size {
break
}
}
}
return buckets
Expand Down

0 comments on commit 1c3e3df

Please sign in to comment.