From f024b0d2f739bb6fff7df1daf2f791fe06f7a14a Mon Sep 17 00:00:00 2001 From: Tortar <68152031+Tortar@users.noreply.github.com> Date: Wed, 17 Apr 2024 17:24:31 +0200 Subject: [PATCH] Update binary_heap.jl --- src/heaps/binary_heap.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/heaps/binary_heap.jl b/src/heaps/binary_heap.jl index 53fa2a2c..41d53454 100644 --- a/src/heaps/binary_heap.jl +++ b/src/heaps/binary_heap.jl @@ -39,7 +39,7 @@ mutable struct BinaryHeap{T, O <: Base.Ordering} <: AbstractHeap{T} end function BinaryHeap{T}(ordering::Base.Ordering, xs::AbstractVector) where T - valtree = @inline heapify!(copyto!(similar(xs), xs), ordering) + valtree = @inline heapify(xs, ordering) new{T, typeof(ordering)}(ordering, valtree) end end