summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-02 23:19:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-02 23:19:18 +0000
commitb2a36083f8c3a5f7ec142ce3d9d8990788a162a6 (patch)
tree731191f025c5b96456141cb06b7579c60523b66d /object.c
parent5d8f0a42bb466e1d8a7c41db7f21425f2af3842a (diff)
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
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index 86468ca..4610070 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_";