diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-13 09:56:22 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-13 09:56:22 +0000 |
commit | aacd7710462142df7397618ffff4279e495f10f9 (patch) | |
tree | 6611fdbf0f66b471386ad19d7854275c583b8914 /gc.c | |
parent | 12bf73637b960cf0ef463f966554595ff2c37ecd (diff) | |
download | ruby-aacd7710462142df7397618ffff4279e495f10f9.tar.gz |
* *.c, parse.y, insns.def: use RARRAY_AREF/ASET macro
instead of using RARRAY_PTR().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1387,9 +1387,9 @@ run_finalizer(rb_objspace_t *objspace, VALUE obj, VALUE table) args[2] = (VALUE)rb_safe_level(); for (i=0; i<RARRAY_LEN(table); i++) { - VALUE final = RARRAY_PTR(table)[i]; - args[0] = RARRAY_PTR(final)[1]; - args[2] = FIX2INT(RARRAY_PTR(final)[0]); + VALUE final = RARRAY_AREF(table, i); + args[0] = RARRAY_AREF(final, 1); + args[2] = FIX2INT(RARRAY_AREF(final, 0)); status = 0; rb_protect(run_single_final, (VALUE)args, &status); if (status) @@ -3834,7 +3834,7 @@ wmap_finalize(VALUE self, VALUE objid) if (st_delete(w->obj2wmap, &orig, &data)) { rids = (VALUE)data; for (i = 0; i < RARRAY_LEN(rids); ++i) { - wmap = (st_data_t)RARRAY_PTR(rids)[i]; + wmap = (st_data_t)RARRAY_AREF(rids, i); st_delete(w->wmap2obj, &wmap, NULL); } } |