diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-04-10 06:00:38 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-04-10 06:00:38 +0900 |
| commit | b351bdb8d53ef2ff2d91c51e2179103e3c76e9a4 (patch) | |
| tree | f64dfa72e586cff2d592988d4425c32747690c46 /mrbgems/mruby-test | |
| parent | d529501cbfd2331c530ca37efa7295d9e627af97 (diff) | |
| download | mruby-b351bdb8d53ef2ff2d91c51e2179103e3c76e9a4.tar.gz mruby-b351bdb8d53ef2ff2d91c51e2179103e3c76e9a4.zip | |
Fixed old style declaration; ref #4365
Diffstat (limited to 'mrbgems/mruby-test')
| -rw-r--r-- | mrbgems/mruby-test/driver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mrbgems/mruby-test/driver.c b/mrbgems/mruby-test/driver.c index fd180b1bb..fcbe15a56 100644 --- a/mrbgems/mruby-test/driver.c +++ b/mrbgems/mruby-test/driver.c @@ -51,9 +51,10 @@ t_print(mrb_state *mrb, mrb_value self) { mrb_value *argv; mrb_int argc; + mrb_int i; mrb_get_args(mrb, "*!", &argv, &argc); - for (mrb_int i = 0; i < argc; ++i) { + for (i = 0; i < argc; ++i) { mrb_value s = mrb_obj_as_string(mrb, argv[i]); fwrite(RSTRING_PTR(s), RSTRING_LEN(s), 1, stdout); } |
