Fix compilation on gcc 4.9.x

This commit is contained in:
Tomas Pollak
2019-04-16 12:34:09 -04:00
parent 7c91efc1ff
commit bcb8e297fc
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -50,10 +50,10 @@ static mrb_value
t_print(mrb_state *mrb, mrb_value self)
{
mrb_value *argv;
mrb_int argc;
mrb_int argc, 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);
}