From db318509d5546696e65e6241197cdacbe442c071 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 14 Dec 2013 02:24:35 +0000 Subject: object.c: fix typo * object.c (rb_mod_const_get): fix typo. should use SYM2ID() not ID2SYM(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'object.c') diff --git a/object.c b/object.c index a7dd8c6685..b3a1c976db 100644 --- a/object.c +++ b/object.c @@ -2084,7 +2084,7 @@ rb_mod_const_get(int argc, VALUE *argv, VALUE mod) } if (SYMBOL_P(name)) { - id = ID2SYM(name); + id = SYM2ID(name); if (!rb_is_const_id(id)) goto wrong_id; return RTEST(recur) ? rb_const_get(mod, id) : rb_const_get_at(mod, id); } -- cgit v1.2.3