Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
d0e67aad
Commit
d0e67aad
authored
Jul 13, 2015
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use "S!" specifier of mrb_get_args() to improve #2882 fix.
parent
02474daa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
src/array.c
src/array.c
+1
-5
No files found.
src/array.c
View file @
d0e67aad
...
...
@@ -1031,11 +1031,7 @@ mrb_ary_join_m(mrb_state *mrb, mrb_value ary)
{
mrb_value
sep
=
mrb_nil_value
();
mrb_get_args
(
mrb
,
"|o"
,
&
sep
);
if
(
!
(
mrb_nil_p
(
sep
)
||
mrb_type
(
sep
)
==
MRB_TT_STRING
))
{
mrb_raise
(
mrb
,
E_TYPE_ERROR
,
"expected String"
);
return
mrb_nil_value
();
}
mrb_get_args
(
mrb
,
"|S!"
,
&
sep
);
return
mrb_ary_join
(
mrb
,
ary
,
sep
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment