We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8834b2 commit 9bb0b6cCopy full SHA for 9bb0b6c
lib/containers/heap.rb
@@ -369,7 +369,7 @@ def consolidate
369
degree += 1
370
end
371
degrees[degree] = root
372
- min = root if min.key == root.key # this fixes a bug with duplicate keys not being in the right order
+ min = root if !@compare_fn[min.key, root.key] # this fixes a bug with duplicate keys not being in the right order
373
374
375
@next = min
0 commit comments