Skip to content

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

Merged
nevans merged 1 commit into
masterfrom
sequence_set/fix-slice-when-start-at-star
Oct 10, 2026
Merged

nevans merged 1 commit into
masterfrom
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 was 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
@nevans
nevans force-pushed the sequence_set/fix-slice-when-start-at-star branch from bb3a8f9 to 37906b5 Compare October 3, 2026 13:42
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 37906b5 to f9b6018 Compare October 10, 2026 03:15
Base automatically changed from sequence_set/slice-refactoring to master October 10, 2026 03:25
@nevans
nevans merged commit f9b6018 into master Oct 10, 2026
17 checks passed
@nevans
nevans deleted the sequence_set/fix-slice-when-start-at-star branch October 10, 2026 03:25
@nevans nevans changed the title 🐛 Fix SequenceSet#slice when starting at "*" 🐛 Fix SequenceSet#slice when starting at "*" Oct 12, 2026
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