1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

object.c: fix up r51039

* object.c (convert_type): conversion without "to_" prefix is not
  implicit.  fix up r51039.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-07-02 23:19:18 +00:00
parent 5d8f0a42bb
commit b2a36083f8

View file

@ -2579,7 +2579,7 @@ static VALUE
convert_type(VALUE val, const char *tname, const char *method, int raise) convert_type(VALUE val, const char *tname, const char *method, int raise)
{ {
ID m = 0; ID m = 0;
int i; int i = numberof(conv_method_names);
VALUE r; VALUE r;
static const char prefix[] = "to_"; static const char prefix[] = "to_";