Skip to content

Commit d8eade5

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

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
@@ -285,7 +285,7 @@ func merge(r0, r1 *RPHeap) *RPHeap {
285285

286286
func (r *RPHeap) maxBucketSize() int {
287287
bit, cnt := 1, r.size
288-
for cnt > 1 {
288+
for cnt > 2 {
289289
cnt /= 2
290290
bit++
291291
}

0 commit comments

Comments
 (0)