summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-30 10:10:23 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-30 10:10:23 +0000
commit6b16db9c800ab1f48ca581b1b347e335dad82fc7 (patch)
tree344c1a19c809dd12279de2eb2b4c3848afd7e163 /bignum.c
parentd00bca92a93fbb2a0a0e8be6f4d466d9062a2190 (diff)
downloadbundler-6b16db9c800ab1f48ca581b1b347e335dad82fc7.tar.gz
Define Integer#< instead of Bignum#<.
* numeric.c (int_lt): Define Integer#<. * bignum.c (rb_big_lt): Don't define Bignum#<. Renamed from big_lt. * internal.h (rb_big_lt): Declared. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/bignum.c b/bignum.c
index d81f601ba4..a13b0dc69e 100644
--- a/bignum.c
+++ b/bignum.c
@@ -5460,16 +5460,8 @@ big_ge(VALUE x, VALUE y)
return big_op(x, y, big_op_ge);
}
-/*
- * call-seq:
- * big < real -> true or false
- *
- * Returns <code>true</code> if the value of <code>big</code> is
- * less than that of <code>real</code>.
- */
-
-static VALUE
-big_lt(VALUE x, VALUE y)
+VALUE
+rb_big_lt(VALUE x, VALUE y)
{
return big_op(x, y, big_op_lt);
}
@@ -6875,7 +6867,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, "<", big_lt, 1);
rb_define_method(rb_cBignum, "===", rb_big_eq, 1);
#ifdef USE_GMP