diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-30 11:54:26 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-30 11:54:26 +0000 |
commit | a9f3a1cda13c78e893f841fc08b21a17afe64b16 (patch) | |
tree | 7621dbb49c4f054326c50021b3b6162ecc53d7c5 /bignum.c | |
parent | e27a06f4bbf0723cd19a943c41dff3125ed0a69d (diff) |
Define Integer#* instead of Bignum#*.
* numeric.c (rb_int_mul): Define Integer#*.
* bignum.c (rb_big_mul): Don't define Bignum#*.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -5897,13 +5897,6 @@ bigmul0(VALUE x, VALUE y) return z; } -/* - * call-seq: - * big * other -> Numeric - * - * Multiplies big and other, returning the result. - */ - VALUE rb_big_mul(VALUE x, VALUE y) { @@ -6844,7 +6837,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_mul, 1); rb_define_method(rb_cBignum, "/", rb_big_div, 1); rb_define_method(rb_cBignum, "===", rb_big_eq, 1); |