Skip to content

Commit e52c692

Browse files
author
徐志强
committed
fix maxBucketSize
1 parent 88e3535 commit e52c692

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rank_pairing/rank_pairing_heap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ func merge(r0, r1 *RPHeap) *RPHeap {
284284
}
285285

286286
func (r *RPHeap) maxBucketSize() int {
287-
bit, cnt := 1, r.size
287+
bit, cnt := 0, r.size
288288
for cnt > 1 {
289289
cnt /= 2
290290
bit++

0 commit comments

Comments
 (0)