We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8834b2 commit b59e02dCopy full SHA for b59e02d
1 file changed
lib/containers/heap.rb
@@ -369,7 +369,8 @@ 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
+
373
+ min = root if !@compare_fn[min.key, root.key] # this fixes a bug with duplicate keys not being in the right order
374
375
376
@next = min
0 commit comments