Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
RUrlus authored May 27, 2024
2 parents e6f18cc + 5614737 commit d24939f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["scikit-build-core >=0.4.3", "nanobind >=1.3.2"]
requires = ["scikit-build-core >=0.4.3", "nanobind >=1.3.2,<2.0.0"]
build-backend = "scikit_build_core.build"

[project]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class MaxHeap {
* \param initial initial `val` to set for all the entries
*/
explicit MaxHeap(int n, eT initial) : heap_size{n}, init{initial} {
heap.reserve(n);
heap.reserve(n + 1);
for (int i = 0; i < heap_size; i++) {
heap.push_back({max_order, -1, initial});
}
Expand Down

0 comments on commit d24939f

Please sign in to comment.