Skip to content

Commit 4c87c8a

Browse files
committed
Also fix percolate_up!
1 parent ad1fe9e commit 4c87c8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/heaps/arrays_as_heaps.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Base.@propagate_inbounds function percolate_up!(xs::AbstractArray, i::Integer, x
4141
end
4242
@inbounds xs[i] = x
4343
end
44-
Base.@propagate_inbounds percolate_up!(xs::AbstractArray, i::Integer, o::Ordering) = percolate_up!(xs, i, xs[i], o)
44+
Base.@propagate_inbounds percolate_up!(xs::AbstractArray, i::Integer, o::Ordering=Forward) = percolate_up!(xs, i, xs[i], o)
4545

4646
"""
4747
heappop!(v, [ord])

0 commit comments

Comments
 (0)