diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-30 12:09:31 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-30 12:09:31 +0000 |
commit | 11ca96d3a34bead0e4bbdddd2f9618c1869e85ad (patch) | |
tree | f20fa44dd498d56cd312f4a787471f144d561f3b /bignum.c | |
parent | a9f3a1cda13c78e893f841fc08b21a17afe64b16 (diff) | |
download | ruby-11ca96d3a34bead0e4bbdddd2f9618c1869e85ad.tar.gz |
Define Integer#- instead of Bignum#-.
* numeric.c (rb_int_minus): Define Integer#-.
* bignum.c (rb_big_minus): Don't define Bignum#-.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -5803,13 +5803,6 @@ rb_big_plus(VALUE x, VALUE y) } } -/* - * call-seq: - * big - other -> Numeric - * - * Subtracts other from big, returning the result. - */ - VALUE rb_big_minus(VALUE x, VALUE y) { @@ -6836,7 +6829,6 @@ Init_Bignum(void) 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_minus, 1); rb_define_method(rb_cBignum, "/", rb_big_div, 1); rb_define_method(rb_cBignum, "===", rb_big_eq, 1); |