Skip to content

fix: resize/reserve bug#502

Merged
nathanwbrei merged 1 commit into
JeffersonLab:masterfrom
wdconinc:resize-reserve
Jun 1, 2026
Merged

fix: resize/reserve bug#502
nathanwbrei merged 1 commit into
JeffersonLab:masterfrom
wdconinc:resize-reserve

Conversation

@wdconinc
Copy link
Copy Markdown
Member

This PR fixes a reserve that should have been a resize.

Copilot AI review requested due to automatic review settings May 27, 2026 23:44
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Fixes a bug in the UnionFind constructor where reserve was used instead of resize, causing out-of-bounds writes when initializing parent and rank vectors.

Changes:

  • Replace reserve with resize for parent and rank vectors in UnionFind constructor.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nathanwbrei nathanwbrei merged commit 31965ac into JeffersonLab:master Jun 1, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants