Skip to content

Comments

fix: do not accidently remove zeros in vector sub#330

Merged
Kerollmops merged 1 commit intoRoaringBitmap:mainfrom
Dr-Emann:fix_vector_array_sub
Jul 10, 2025
Merged

fix: do not accidently remove zeros in vector sub#330
Kerollmops merged 1 commit intoRoaringBitmap:mainfrom
Dr-Emann:fix_vector_array_sub

Conversation

@Dr-Emann
Copy link
Member

@Dr-Emann Dr-Emann commented Jul 9, 2025

Previously, we filled a partial buffer with the integers to remove, but the rest of the buffer would be filled with zeros, which could mean we could end up removing a zero from the bitmap even if zero was not in the list of values to remove.

Fixes #327

Previously, we filled a partial buffer with the integers to remove, but
the rest of the buffer would be filled with zeros, which could mean we
could end up removing a zero from the bitmap even if zero was not in the
list of values to remove.
Copy link
Member

@Kerollmops Kerollmops left a comment

Choose a reason for hiding this comment

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

Nice catch @Dr-Emann 👏

Merging it right now and will do a release soon.

@Kerollmops Kerollmops added this pull request to the merge queue Jul 10, 2025
Merged via the queue into RoaringBitmap:main with commit 8b650a6 Jul 10, 2025
15 checks passed
@Dr-Emann Dr-Emann deleted the fix_vector_array_sub branch July 10, 2025 18:24
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.

AssignSub broken with simd feature

2 participants