Use `mrb_raise()` instead of `mrb_raisef()`; ref #4062

parent e6082940
......@@ -709,7 +709,7 @@ mrb_str_resize(mrb_state *mrb, mrb_value str, mrb_int len)
struct RString *s = mrb_str_ptr(str);
if (len < 0) {
mrb_raisef(mrb, E_ARGUMENT_ERROR, "negative (or overflowed) string size");
mrb_raise(mrb, E_ARGUMENT_ERROR, "negative (or overflowed) string size");
}
mrb_str_modify(mrb, s);
slen = RSTR_LEN(s);
......
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