Commit cd48737e authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

mrb_str_concat was broken for shared strings; close #214

parent 30556ad9
......@@ -337,6 +337,7 @@ mrb_str_concat(mrb_state *mrb, mrb_value self, mrb_value other)
struct RString *s1 = mrb_str_ptr(self), *s2;
int len;
str_modify(mrb, self);
if (mrb_type(other) != MRB_TT_STRING) {
other = mrb_str_to_str(mrb, other);
}
......
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