diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-30 10:26:17 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-30 10:26:17 +0000 |
commit | 289c3f40a1023889a0fe69c43487ca1762e209c6 (patch) | |
tree | a7a1697c16410bdceee64afb3e00bfefde8a3f1f /bignum.c | |
parent | 5576a93756eac174a2d0a9bd1a9c9ce66f749628 (diff) | |
download | ruby-289c3f40a1023889a0fe69c43487ca1762e209c6.tar.gz |
Define Integer#>= instead of Bignum#>=.
* numeric.c (int_ge): Define Integer#>=.
* bignum.c (rb_big_ge): Don't define Bignum#>=.
Renamed from big_ge.
* internal.h (rb_big_ge): Declared.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -5446,16 +5446,8 @@ big_gt(VALUE x, VALUE y) return big_op(x, y, big_op_gt); } -/* - * call-seq: - * big >= real -> true or false - * - * Returns <code>true</code> if the value of <code>big</code> is - * greater than or equal to that of <code>real</code>. - */ - -static VALUE -big_ge(VALUE x, VALUE y) +VALUE +rb_big_ge(VALUE x, VALUE y) { return big_op(x, y, big_op_ge); } @@ -6866,7 +6858,6 @@ Init_Bignum(void) rb_define_method(rb_cBignum, "==", rb_big_eq, 1); rb_define_method(rb_cBignum, ">", big_gt, 1); - rb_define_method(rb_cBignum, ">=", big_ge, 1); rb_define_method(rb_cBignum, "===", rb_big_eq, 1); #ifdef USE_GMP |