From 2df3e8de58db7b1df5937f6faf641f354a507f7c Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 14 Apr 2015 03:33:00 +0000 Subject: [PATCH] vm_backtrace.c: use rb_id2str * vm_backtrace.c (location_base_label): convert ID to string directly, and the return value is frozen. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_backtrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm_backtrace.c b/vm_backtrace.c index 7ea0b3ba5e..b259ceb52a 100644 --- a/vm_backtrace.c +++ b/vm_backtrace.c @@ -208,7 +208,7 @@ location_base_label(rb_backtrace_location_t *loc) case LOCATION_TYPE_ISEQ_CALCED: return loc->body.iseq.iseq->location.base_label; case LOCATION_TYPE_CFUNC: - return rb_sym_to_s(ID2SYM(loc->body.cfunc.mid)); + return rb_id2str(loc->body.cfunc.mid); case LOCATION_TYPE_IFUNC: default: rb_bug("location_base_label: unreachable");