ruby-changes:50461
From: nobu <ko1@a...>
Date: Mon, 26 Feb 2018 23:39:20 +0900 (JST)
Subject: [ruby-changes:50461] nobu:r62589 (trunk): use convert_type_with_id
nobu 2018-02-26 23:39:16 +0900 (Mon, 26 Feb 2018) New Revision: 62589 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62589 Log: use convert_type_with_id Modified files: trunk/object.c Index: object.c =================================================================== --- object.c (revision 62588) +++ object.c (revision 62589) @@ -3470,7 +3470,7 @@ rb_check_to_float(VALUE val) https://github.com/ruby/ruby/blob/trunk/object.c#L3470 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/