aboutsummaryrefslogtreecommitdiffstats
path: root/rational.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-27 08:15:27 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-27 08:15:27 +0000
commit54be1d97c40a2abc7c976b209cb42acec6f6b56c (patch)
tree127395984175c4c5af931da19fff51dd0869f4e3 /rational.c
parent5c396145a418def77c9faceacb92177e8a93e15b (diff)
downloadruby-54be1d97c40a2abc7c976b209cb42acec6f6b56c.tar.gz
defs/id.def: predefine to_f ID
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rational.c b/rational.c
index 0add47dc53..c350ad32b7 100644
--- a/rational.c
+++ b/rational.c
@@ -962,7 +962,7 @@ nurat_fdiv(VALUE self, VALUE other)
return nurat_to_f(div);
if (RB_FLOAT_TYPE_P(div))
return div;
- return rb_funcall(div, rb_intern("to_f"), 0);
+ return rb_funcall(div, idTo_f, 0);
}
inline static VALUE