Skip to content

Fix Bignum's bitwise operations#2636

Merged
enebo merged 1 commit intojruby:masterfrom
lumeet:numeric_coercion_type_error
Mar 3, 2015
Merged

Fix Bignum's bitwise operations#2636
enebo merged 1 commit intojruby:masterfrom
lumeet:numeric_coercion_type_error

Conversation

@lumeet
Copy link
Contributor

@lumeet lumeet commented Mar 1, 2015

Changes are made to Bignum#&, Bignum#| and Bignum#^ to fix bitwise
operations with objects other than Bignum or Fixnum. For example:

my_bignum & Rational(3, 2) # => TypeError instead of 0

Changes are made to Bignum#&, Bignum#| and Bignum#^ to fix bitwise
operations with objects other than Bignum or Fixnum. For example:

  my_bignum & Rational(3, 2) # => TypeError instead of 0
enebo added a commit that referenced this pull request Mar 3, 2015
@enebo enebo merged commit addccf2 into jruby:master Mar 3, 2015
@enebo enebo added this to the 9.0.0.0.pre2 milestone Mar 3, 2015
@enebo enebo added the core label Mar 3, 2015
@lumeet lumeet deleted the numeric_coercion_type_error branch March 3, 2015 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants