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
commit86d9071e0b81de7032cd52de0ec5f2af14a804c9 (patch)
tree127395984175c4c5af931da19fff51dd0869f4e3 /rational.c
parent34560d950bf4d2455cdaa15261f7523a06851cab (diff)
downloadruby-86d9071e0b81de7032cd52de0ec5f2af14a804c9.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