Skip to content

fix AdvanceIfNeeded on UnsetIterator#496

Merged
lemire merged 1 commit intoRoaringBitmap:masterfrom
rogpeppe-contrib:fix-unset-iterator
Nov 7, 2025
Merged

fix AdvanceIfNeeded on UnsetIterator#496
lemire merged 1 commit intoRoaringBitmap:masterfrom
rogpeppe-contrib:fix-unset-iterator

Conversation

@rogpeppe
Copy link
Contributor

@rogpeppe rogpeppe commented Nov 7, 2025

Description

The bounds check in AdvanceIfNeeded appeared to be wrong. This PR fixes that.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Performance improvement
  • Code refactoring
  • Documentation update
  • Test improvements
  • Build/CI changes

Changes Made

What was changed?

  • fix bug in AdvanceIfNeeded on UnsetIterator

Related Issues

Fixes #495

Fixes RoaringBitmap#495

Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
@lemire lemire merged commit e2c9e47 into RoaringBitmap:master Nov 7, 2025
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.

AdvanceIfNeeded on UnsetIterator can cause iterator to fail to advance

2 participants