From b2a36083f8c3a5f7ec142ce3d9d8990788a162a6 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 2 Jul 2015 23:19:18 +0000 Subject: [PATCH] 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 --- object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/object.c b/object.c index 86468ca4e1..4610070a3c 100644 --- a/object.c +++ b/object.c @@ -2579,7 +2579,7 @@ static VALUE 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_";