Stop using `mrb_to_str` as a converter (it is not).

parent 0286a7f7
......@@ -674,7 +674,8 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
}
}
if (i < argc) {
*p = mrb_to_str(mrb, ARGV[arg_i++]);
*p = ARGV[arg_i++];
mrb_to_str(mrb, *p);
i++;
}
}
......@@ -735,7 +736,8 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
}
}
if (i < argc) {
ss = mrb_to_str(mrb, ARGV[arg_i++]);
ss = ARGV[arg_i++];
mrb_to_str(mrb, ss);
*ps = RSTRING_PTR(ss);
*pl = RSTRING_LEN(ss);
i++;
......@@ -757,7 +759,8 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
}
}
if (i < argc) {
ss = mrb_to_str(mrb, ARGV[arg_i++]);
ss = ARGV[arg_i++];
mrb_to_str(mrb, ss);
*ps = RSTRING_CSTR(mrb, ss);
i++;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment