Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix out ouf bounds when taking from run end arrays #501

Merged
merged 2 commits into from
Jul 22, 2024
Merged

Conversation

robert3005
Copy link
Member

No description provided.

@robert3005
Copy link
Member Author

Still need to write a test

@a10y
Copy link
Contributor

a10y commented Jul 22, 2024

thank you

Copy link
Contributor

@a10y a10y left a comment

Choose a reason for hiding this comment

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

cherrypicked this to my branch and the benchmarks work again

@robert3005
Copy link
Member Author

But something is wrong since the tests fail which makes me question my sanity

@robert3005
Copy link
Member Author

Ah this has to work the same way sparse array works

@robert3005 robert3005 merged commit 6a9873e into develop Jul 22, 2024
2 checks passed
@robert3005 robert3005 deleted the rk/runend branch July 22, 2024 20:36
@@ -27,7 +27,20 @@ impl SearchResult {
}
}

pub fn to_index(self) -> usize {
pub fn to_non_zero_offset_index(self, len: usize) -> usize {
Copy link
Member Author

Choose a reason for hiding this comment

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

need to think about better names for this, to_index_end_exclusive?

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.

2 participants