From 27c4fb3361d0e731d2deff6093ebd33b69231323 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 3 Aug 2014 01:56:16 +0000 Subject: ext: get rid of inadvertent ID creation git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/objspace/objspace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/objspace/objspace.c') diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c index b1f1358c01..88ebfca20e 100644 --- a/ext/objspace/objspace.c +++ b/ext/objspace/objspace.c @@ -545,7 +545,7 @@ iow_inspect(VALUE self) VALUE obj = (VALUE)DATA_PTR(self); VALUE type = type2sym(BUILTIN_TYPE(obj)); - return rb_sprintf("#", (void *)obj, rb_id2name(SYM2ID(type))); + return rb_sprintf("#", (void *)obj, rb_sym2str(type)); } /* Returns the Object#object_id of the internal object. */ -- cgit v1.2.3