summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
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 0add47d..c350ad3 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