diff options
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |