Skip to content

Commit 023f996

Browse files
committed
partr: fix performance trap from #44653
See issue #44720
1 parent 6e0772a commit 023f996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/partr.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function sift_down(heap::taskheap, idx::Int32)
6565
if idx <= heap.ntasks
6666
for child = (heap_d * idx - heap_d + Int32(2)):(heap_d * idx + Int32(1))
6767
child > tasks_per_heap && break
68-
if isassigned(heap.tasks, child) &&
68+
if isassigned(heap.tasks, Int(child)) &&
6969
heap.tasks[child].priority < heap.tasks[idx].priority
7070
t = heap.tasks[idx]
7171
heap.tasks[idx] = heap.tasks[child]

0 commit comments

Comments
 (0)