mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mrb_str_concat was broken for shared strings; close #214
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user