Skip to content

🐛 Fix SequenceSet#slice when starting at "*" - #772

Open
nevans wants to merge 1 commit into
sequence_set/slice-refactoringfrom
sequence_set/fix-slice-when-start-at-star
Open

nevans wants to merge 1 commit into
sequence_set/slice-refactoringfrom
sequence_set/fix-slice-when-start-at-star

Conversation

@nevans

@nevans nevans commented Oct 3, 2026

Copy link
Copy Markdown
Collaborator

When the starting index points to "*", the min <= max comparison fails and an exception is raised.

Without changing the basic #slice_range structure and algorithm, the simplest fix is to use the internal integers for min and max, which will always be comparable.

@nevans
nevans force-pushed the sequence_set/fix-slice-when-start-at-star branch from a8cb744 to bb3a8f9 Compare October 3, 2026 00:28
@nevans
nevans changed the base branch from sequence_set/slice-rdoc to sequence_set/slice-refactoring October 3, 2026 00:32
@nevans
nevans added this pull request to stack #775 October 3, 2026 00:32
@nevans nevans added bug Something isn't working backport-0.5 This ticket needs to be backported to the v0.5-stable branch. labels Oct 3, 2026
When the starting index points to "*", the `min <= max` comparison
fails and an exception is raised.

Without changing the basic `#slice_range` structure and algorithm, the
simplest fix is to use the internal integers for `min` and `max`, which
will always be comparable.
@nevans
nevans force-pushed the sequence_set/fix-slice-when-start-at-star branch from bb3a8f9 to 37906b5 Compare October 3, 2026 13:42

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-0.5 This ticket needs to be backported to the v0.5-stable branch. bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant