Skip to content

Commit 7fc3ca6

Browse files
committed
PR feedback
1 parent 708eeae commit 7fc3ca6

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,16 @@ Starting from version 0.19.0, CHANGELOG.md is managed in a format that follows <
66
[Unreleased]: https://github.com/JuliaCollections/DataStructures.jl/compare/v0.19.0...HEAD
77
[0.19.0]: https://github.com/JuliaCollections/DataStructures.jl/compare/v0.18.22...v0.19.0
88
[0.19.1]: https://github.com/JuliaCollections/DataStructures.jl/compare/v0.19.0...v0.19.1
9+
[0.19.2]: https://github.com/JuliaCollections/DataStructures.jl/compare/v0.19.1...v0.19.2
910
<!-- links end -->
1011

12+
[0.19.2]
13+
=====================
14+
15+
## Added
16+
17+
- `percolate_up!`, `percolate_down!` now use `@propagate_inbounds` to control bounds checking (JuliaCollections/DataStructures.jl#944)
18+
1119
[0.19.1] - 2025-08-26
1220
=====================
1321

src/heaps.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ end
109109
return an array of the first `n` values of `arr` sorted by `ord`.
110110
"""
111111
function nextreme(ord::Base.Ordering, n::Int, arr::AbstractVector{T}) where T
112+
Base.require_one_based_indexing(arr)
112113
if n <= 0
113114
return T[] # sort(arr)[1:n] returns [] for n <= 0
114115
elseif n >= length(arr)

0 commit comments

Comments
 (0)