Skip to content

Raise NoMemoryError for lshift > int max#7558

Merged
headius merged 1 commit intojruby:jruby-9.3from
headius:big_shift_error
Jan 6, 2023
Merged

Raise NoMemoryError for lshift > int max#7558
headius merged 1 commit intojruby:jruby-9.3from
headius:big_shift_error

Conversation

@headius
Copy link
Member

@headius headius commented Jan 6, 2023

This also adds in handling for n = 0 always returning 0 regardless of the size of m (for n << m and n >> m).

Fixes #7554

This also adds in handling for n = 0 always returning 0
regardless of the size of m (for n << m and n >> m).

Fixes jruby#7554
@headius headius added this to the JRuby 9.3.10.0 milestone Jan 6, 2023
@headius headius merged commit ae67895 into jruby:jruby-9.3 Jan 6, 2023
@headius headius deleted the big_shift_error branch January 6, 2023 16:46
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.

1 participant