Skip to content

Commit

Permalink
fix maxBucketSize
Browse files Browse the repository at this point in the history
  • Loading branch information
徐志强 committed Dec 21, 2019
1 parent 88e3535 commit e52c692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rank_pairing/rank_pairing_heap.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func merge(r0, r1 *RPHeap) *RPHeap {
}

func (r *RPHeap) maxBucketSize() int {
bit, cnt := 1, r.size
bit, cnt := 0, r.size
for cnt > 1 {
cnt /= 2
bit++
Expand Down

0 comments on commit e52c692

Please sign in to comment.