summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-30 03:30:53 (GMT)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-30 03:30:53 (GMT)
commitd73b431e5068f2b5a2c696dca6d84a8c394602b1 (patch)
tree87ff847b4145727e7d17f1b0a39032c40bf0cd86 /numeric.c
parent10fb4e151d4b053c1adf2363b278ec37a49497da (diff)
Rename fix_rev and rb_big_neg to fix_comp and rb_big_comp.
* bignum.c (rb_big_comp): Renamed from rb_big_neg. * numeric.c (fix_comp): Renamed from fix_rev. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/numeric.c b/numeric.c
index 6cd0d45..5201db1 100644
--- a/numeric.c
+++ b/numeric.c
@@ -3870,7 +3870,7 @@ fix_le(VALUE x, VALUE y)
*/
static VALUE
-fix_rev(VALUE num)
+fix_comp(VALUE num)
{
return ~num | FIXNUM_FLAG;
}
@@ -3879,10 +3879,10 @@ static VALUE
int_comp(VALUE num)
{
if (FIXNUM_P(num)) {
- return fix_rev(num);
+ return fix_comp(num);
}
else if (RB_TYPE_P(num, T_BIGNUM)) {
- return rb_big_neg(num);
+ return rb_big_comp(num);
}
return Qnil;
}