aboutsummaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-26 14:39:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-26 14:39:16 +0000
commit7011a13306e7fb6a1115c7c683b587fdebd82bce (patch)
tree455c291abebde34f9a93dd182294edf1e1be5978 /object.c
parent84e005958c66af26ec48954f6959a98204c0fc66 (diff)
downloadruby-7011a13306e7fb6a1115c7c683b587fdebd82bce.tar.gz
use convert_type_with_id
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index 2fff5d529c..5ecc035302 100644
--- a/object.c
+++ b/object.c
@@ -3470,7 +3470,7 @@ rb_check_to_float(VALUE val)
if (!rb_obj_is_kind_of(val, rb_cNumeric)) {
return Qnil;
}
- return rb_check_convert_type(val, T_FLOAT, "Float", "to_f");
+ return rb_check_convert_type_with_id(val, T_FLOAT, "Float", id_to_f);
}
static inline int