ruby-changes:39034
From: nobu <ko1@a...>
Date: Fri, 3 Jul 2015 08:19:32 +0900 (JST)
Subject: [ruby-changes:39034] nobu:r51115 (trunk): object.c: fix up r51039
nobu 2015-07-03 08:19:18 +0900 (Fri, 03 Jul 2015) New Revision: 51115 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51115 Log: object.c: fix up r51039 * object.c (convert_type): conversion without "to_" prefix is not implicit. fix up r51039. Modified files: trunk/object.c Index: object.c =================================================================== --- object.c (revision 51114) +++ object.c (revision 51115) @@ -2579,7 +2579,7 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/object.c#L2579 convert_type(VALUE val, const char *tname, const char *method, int raise) { ID m = 0; - int i; + int i = numberof(conv_method_names); VALUE r; static const char prefix[] = "to_"; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/