diff --git a/blake3.go b/blake3.go index 91ac71f..c6609fb 100644 --- a/blake3.go +++ b/blake3.go @@ -298,14 +298,14 @@ type Hasher struct { used uint64 // bit vector indicating which stack elems are valid; also number of chunks added } -func (h *Hasher) hasSubtreeAtHeight(i uint64) bool { +func (h *Hasher) hasSubtreeAtHeight(i int) bool { return h.used&(1<