Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove bignum check from save_history #1018

Merged
merged 1 commit into from
Oct 13, 2024
Merged

Conversation

tompng
Copy link
Member

@tompng tompng commented Oct 13, 2024

IRB need to accept bignum history size, but we don't want explicit bignum checks because threshold of bignum and fixnum depends on platform.

docker(rubylang/rubyfarm): array.last(1<<63) raises RangeError
ruby.wasm: array.last(1<<31) raises RangeError

IRB need to accept bignum history size, but we don't want explicit bignum checks because threshold of bignum and fixnum depends on platform.
@st0012 st0012 added the bug Something isn't working label Oct 13, 2024
@tompng tompng merged commit 5151467 into ruby:master Oct 13, 2024
30 checks passed
@tompng tompng deleted the no_bignum_check branch October 13, 2024 13:00
matzbot pushed a commit to ruby/ruby that referenced this pull request Oct 13, 2024
(ruby/irb#1018)

IRB need to accept bignum history size, but we don't want explicit bignum checks because threshold of bignum and fixnum depends on platform.

ruby/irb@5151467e6a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants