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
ab4ab7c8
Commit
ab4ab7c8
authored
8 years ago
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compile error by #3309
parent
61ac564c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/array.c
src/array.c
+3
-1
No files found.
src/array.c
View file @
ab4ab7c8
...
...
@@ -244,10 +244,12 @@ mrb_ary_s_create(mrb_state *mrb, mrb_value self)
static
void
ary_concat
(
mrb_state
*
mrb
,
struct
RArray
*
a
,
struct
RArray
*
a2
)
{
mrb_int
len
;
if
(
a2
->
len
>
ARY_MAX_SIZE
-
a
->
len
)
{
mrb_raise
(
mrb
,
E_ARGUMENT_ERROR
,
"array size too big"
);
}
mrb_int
len
=
a
->
len
+
a2
->
len
;
len
=
a
->
len
+
a2
->
len
;
ary_modify
(
mrb
,
a
);
if
(
a
->
aux
.
capa
<
len
)
{
...
...
This diff is collapsed.
Click to expand it.
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