Skip to content

Commit

Permalink
should define String#+ (non inlined); close mruby#469
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Sep 13, 2012
1 parent 8d97a8e commit f0f113e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,10 @@ mrb_str_plus(mrb_state *mrb, mrb_value a, mrb_value b)
static mrb_value
mrb_str_plus_m(mrb_state *mrb, mrb_value self)
{
return mrb_nil_value();
mrb_value str;

mrb_get_args(mrb, "S", &str);
return mrb_str_plus(mrb, self, str);
}

/*
Expand Down

0 comments on commit f0f113e

Please sign in to comment.