Skip to content

Commit

Permalink
use heapify! instead of heapify
Browse files Browse the repository at this point in the history
  • Loading branch information
rushabh-v committed Dec 11, 2020
1 parent 1396ead commit 5aa2e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/heaps/mutable_binary_heap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function _make_mutable_binary_heap(ord::Ordering, ty::Type{T}, values) where T
n = length(values)
nodes = Vector{MutableBinaryHeapNode{T}}(undef, n)
nodemap = Vector{Int}(undef, n)
values = heapify(values, ord)
values = heapify!(values, ord)

i::Int = 0
for v in values
Expand Down

0 comments on commit 5aa2e2a

Please sign in to comment.