diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-05 01:17:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-05 01:17:19 +0000 |
commit | 612978edbce91268ca81a98af8eb89c583d2131a (patch) | |
tree | 11d4a1de425fef35b8d3f6fa5b9d739cfe7469a5 /ext/tk/tkutil/tkutil.c | |
parent | d2e48a3f01d9ce2fa6fd860ad5bd2fee28e29e66 (diff) | |
download | ruby-612978edbce91268ca81a98af8eb89c583d2131a.tar.gz |
ext: use RARRAY_ASET
* ext/socket/socket.c (make_addrinfo): use RARRAY_ASET for
write-barrier.
* ext/tk/tcltklib.c ({call,eval,invoke}_queue_handler): ditto.
* ext/tk/tkutil/tkutil.c (ary2list, ary2list2): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/tkutil/tkutil.c')
-rw-r--r-- | ext/tk/tkutil/tkutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/tkutil/tkutil.c b/ext/tk/tkutil/tkutil.c index 1a3720523e..7dbbc0dbd0 100644 --- a/ext/tk/tkutil/tkutil.c +++ b/ext/tk/tkutil/tkutil.c @@ -481,7 +481,7 @@ ary2list(ary, enc_flag, self) } else { str_val = rb_funcall(cTclTkLib, ID_toUTF8, 1, str_val); } - RARRAY_PTR(dst)[idx] = str_val; + RARRAY_ASET(dst, idx, str_val); } val = rb_apply(cTclTkLib, ID_merge_tklist, dst); if (RB_TYPE_P(dst_enc, T_STRING)) { @@ -575,7 +575,7 @@ ary2list2(ary, enc_flag, self) } else { str_val = rb_funcall(cTclTkLib, ID_toUTF8, 1, str_val); } - RARRAY_PTR(dst)[idx] = str_val; + RARRAY_ASET(dst, idx, str_val); } val = rb_apply(cTclTkLib, ID_merge_tklist, dst); if (RB_TYPE_P(dst_enc, T_STRING)) { |