Skip to content

Commit 85206ca

Browse files
committed
oops
1 parent bc0d1d5 commit 85206ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

proof/proof.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ func isSubtreeValid(start, end uint64) error {
236236
// special-case large subtree to avoid panic
237237
return fmt.Errorf("start %d must be 0 when subtree length %d > 1<<63. ", start, l)
238238
}
239-
if start%bitCeil(l) != 0 {
240-
return fmt.Errorf("start %d not a multiple of bit_ceil(end - start) = %d", start, l)
239+
if bc := bitCeil(l); start%bc != 0 {
240+
return fmt.Errorf("start %d not a multiple of bit_ceil(end - start) = %d", start, bc)
241241
}
242242
return nil
243243
}

0 commit comments

Comments
 (0)