mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
use convert_type_with_id
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
914444e45e
commit
08ba29ac06
1 changed files with 1 additions and 1 deletions
2
object.c
2
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue