diff options
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |