summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-30 03:21:56 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-30 03:21:56 +0000
commit54726befc3eb52bf06640bfb07664dace3721d14 (patch)
tree99766412fdcda4ec9e5d901e630475c90b56ec94 /thread.c
parentf7c0cc36920a4ed14a3ab1ca6cfdf18ceff1e5d5 (diff)
use RARRAY_AREF() instead of RARRAY_CONST_PTR().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/thread.c b/thread.c
index cb05c2c40f..0b8446ac96 100644
--- a/thread.c
+++ b/thread.c
@@ -3091,9 +3091,9 @@ rb_thread_to_s(VALUE thread)
if (!target_th->first_func && target_th->first_proc) {
VALUE loc = rb_proc_location(target_th->first_proc);
if (!NIL_P(loc)) {
- const VALUE *ptr = RARRAY_CONST_PTR(loc);
- rb_str_catf(str, "@%"PRIsVALUE":%"PRIsVALUE, ptr[0], ptr[1]);
- rb_gc_force_recycle(loc);
+ rb_str_catf(str, "@%"PRIsVALUE":%"PRIsVALUE,
+ RARRAY_AREF(loc, 0), RARRAY_AREF(loc, 1));
+ rb_gc_force_recycle(loc);
}
}
rb_str_catf(str, " %s>", status);