mirror of
https://github.com/ruby/ruby.git
synced 2025-08-22 20:44:18 +02:00
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
This commit is contained in:
parent
f7c0cc3692
commit
54726befc3
6 changed files with 21 additions and 27 deletions
6
thread.c
6
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue