summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
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 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);
}