diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-30 12:24:06 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-30 12:24:06 +0000 |
commit | d0e2d150b8bc9d18d2beff1752086237a627b509 (patch) | |
tree | a0553fe8d145f2cc83506b36b1ecbf0821c74fc3 /bignum.c | |
parent | 11ca96d3a34bead0e4bbdddd2f9618c1869e85ad (diff) | |
download | bundler-d0e2d150b8bc9d18d2beff1752086237a627b509.tar.gz |
Define Integer#+ instead of Bignum#+.
* numeric.c (rb_int_plus): Define Integer#+.
* bignum.c (rb_big_plus): Don't define Bignum#+.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -5767,13 +5767,6 @@ bigadd(VALUE x, VALUE y, int sign) return z; } -/* - * call-seq: - * big + other -> Numeric - * - * Adds big and other, returning the result. - */ - VALUE rb_big_plus(VALUE x, VALUE y) { @@ -6828,7 +6821,6 @@ Init_Bignum(void) rb_cBignum = rb_define_class("Bignum", rb_cInteger); rb_define_method(rb_cBignum, "coerce", rb_big_coerce, 1); - rb_define_method(rb_cBignum, "+", rb_big_plus, 1); rb_define_method(rb_cBignum, "/", rb_big_div, 1); rb_define_method(rb_cBignum, "===", rb_big_eq, 1); |