diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-06-01 02:18:30 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-06-01 02:18:30 +0900 |
| commit | f56abcbb5a78b51b0edf0603b4e0e54ed70fd0d2 (patch) | |
| tree | 95789bd28bdd9c3341f7d913c4cfbf071f722b1a /src/string.c | |
| parent | 62f42705714d647159218d4743b2d036bb90bc8a (diff) | |
| download | mruby-f56abcbb5a78b51b0edf0603b4e0e54ed70fd0d2.tar.gz mruby-f56abcbb5a78b51b0edf0603b4e0e54ed70fd0d2.zip | |
reorder mrb_ary_new_from_values() args to (argc, argv)
Diffstat (limited to 'src/string.c')
| -rw-r--r-- | src/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c index 0714c360c..b6ca9e489 100644 --- a/src/string.c +++ b/src/string.c @@ -2111,7 +2111,7 @@ mrb_str_split_m(mrb_state *mrb, mrb_value str) else if (lim == 1) { if (RSTRING_LEN(str) == 0) return mrb_ary_new_capa(mrb, 0); - return mrb_ary_new_from_values(mrb, &str, 1); + return mrb_ary_new_from_values(mrb, 1, &str); } i = 1; } |
