nghttpx: Use mrb_ary_ref instead of mrb_ary_entry

This commit is contained in:
Tatsuhiro Tsujikawa 2016-11-03 22:44:42 +09:00
parent da01d8dedb
commit 95e6c875f0
2 changed files with 2 additions and 2 deletions

View File

@ -249,7 +249,7 @@ mrb_value request_mod_header(mrb_state *mrb, mrb_value self, bool repl) {
if (mrb_obj_is_instance_of(mrb, values, mrb->array_class)) { if (mrb_obj_is_instance_of(mrb, values, mrb->array_class)) {
auto n = mrb_ary_len(mrb, values); auto n = mrb_ary_len(mrb, values);
for (int i = 0; i < n; ++i) { for (int i = 0; i < n; ++i) {
auto value = mrb_ary_entry(values, i); auto value = mrb_ary_ref(mrb, values, i);
req.fs.add_header_token( req.fs.add_header_token(
keyref, keyref,
make_string_ref(balloc, make_string_ref(balloc,

View File

@ -141,7 +141,7 @@ mrb_value response_mod_header(mrb_state *mrb, mrb_value self, bool repl) {
if (mrb_obj_is_instance_of(mrb, values, mrb->array_class)) { if (mrb_obj_is_instance_of(mrb, values, mrb->array_class)) {
auto n = mrb_ary_len(mrb, values); auto n = mrb_ary_len(mrb, values);
for (int i = 0; i < n; ++i) { for (int i = 0; i < n; ++i) {
auto value = mrb_ary_entry(values, i); auto value = mrb_ary_ref(mrb, values, i);
resp.fs.add_header_token( resp.fs.add_header_token(
keyref, keyref,
make_string_ref(balloc, make_string_ref(balloc,