Skip to content

Fix Array#slice raises a RangeError when the start index is out of range of Fixnum#9247

Merged
headius merged 1 commit intojruby:masterfrom
evaniainbrooks:array-slice-tags
Feb 18, 2026
Merged

Fix Array#slice raises a RangeError when the start index is out of range of Fixnum#9247
headius merged 1 commit intojruby:masterfrom
evaniainbrooks:array-slice-tags

Conversation

@evaniainbrooks
Copy link
Contributor

…nge of Fixnum

Compare to TruffleRuby's FloatToIntegerNode.java: value < Long.MAX_VALUE
@evaniainbrooks evaniainbrooks marked this pull request as ready for review February 17, 2026 18:38
Copy link
Member

@headius headius left a comment

Choose a reason for hiding this comment

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

Yup makes sense! Thanks!

@headius headius merged commit 66b85c2 into jruby:master Feb 18, 2026
79 checks passed
@headius headius added this to the JRuby 10.0.4.0 milestone Feb 18, 2026
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.

2 participants