Update mruby 1.4.1

This commit is contained in:
Tatsuhiro Tsujikawa 2018-09-16 22:54:09 +09:00
parent a63558a1eb
commit 88ff8c69a0
3 changed files with 5 additions and 5 deletions

View File

@ -254,7 +254,7 @@ mrb_value request_mod_header(mrb_state *mrb, mrb_value self, bool repl) {
} }
if (mrb_array_p(values)) { if (mrb_array_p(values)) {
auto n = mrb_ary_len(mrb, values); auto n = RARRAY_LEN(values);
for (int i = 0; i < n; ++i) { for (int i = 0; i < n; ++i) {
auto value = mrb_ary_ref(mrb, values, i); auto value = mrb_ary_ref(mrb, values, i);
if (!mrb_string_p(value)) { if (!mrb_string_p(value)) {

View File

@ -146,7 +146,7 @@ mrb_value response_mod_header(mrb_state *mrb, mrb_value self, bool repl) {
} }
if (mrb_array_p(values)) { if (mrb_array_p(values)) {
auto n = mrb_ary_len(mrb, values); auto n = RARRAY_LEN(values);
for (int i = 0; i < n; ++i) { for (int i = 0; i < n; ++i) {
auto value = mrb_ary_ref(mrb, values, i); auto value = mrb_ary_ref(mrb, values, i);
if (!mrb_string_p(value)) { if (!mrb_string_p(value)) {
@ -299,7 +299,7 @@ mrb_value response_send_info(mrb_state *mrb, mrb_value self) {
auto &balloc = downstream->get_block_allocator(); auto &balloc = downstream->get_block_allocator();
auto keys = mrb_hash_keys(mrb, hash); auto keys = mrb_hash_keys(mrb, hash);
auto keyslen = mrb_ary_len(mrb, keys); auto keyslen = RARRAY_LEN(keys);
for (int i = 0; i < keyslen; ++i) { for (int i = 0; i < keyslen; ++i) {
auto key = mrb_ary_ref(mrb, keys, i); auto key = mrb_ary_ref(mrb, keys, i);
@ -322,7 +322,7 @@ mrb_value response_send_info(mrb_state *mrb, mrb_value self) {
auto token = http2::lookup_token(keyref.byte(), keyref.size()); auto token = http2::lookup_token(keyref.byte(), keyref.size());
if (mrb_array_p(values)) { if (mrb_array_p(values)) {
auto n = mrb_ary_len(mrb, values); auto n = RARRAY_LEN(values);
for (int i = 0; i < n; ++i) { for (int i = 0; i < n; ++i) {
auto value = mrb_ary_ref(mrb, values, i); auto value = mrb_ary_ref(mrb, values, i);
if (!mrb_string_p(value)) { if (!mrb_string_p(value)) {

2
third-party/mruby vendored

@ -1 +1 @@
Subproject commit 4696093673c3352a1897490ecc5e4e4e40f463b5 Subproject commit 023070a6396233974785a8fd5735b9380a884f27