-
Notifications
You must be signed in to change notification settings - Fork 184
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 indexing bug in ZeroMap2d::insert #4160
Conversation
Found the bug and pushed a fix. |
+ match self.keys1.zvl_binary_search_in_range(key1, range).unwrap() { | ||
Ok(index) => return Some(self.values.zvl_replace(index, value)), | ||
Ok(index) => return Some(self.values.zvl_replace(range_start + index, value)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bug is here; it was overwriting the wrong value in the map.
I don't think we need a patch release since this is not a regression in behavior, but I would not oppose a patch release. It appears |
Fixes #4161