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
206c96e4
Commit
206c96e4
authored
May 03, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reindent else
parent
0c294af0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/range.c
src/range.c
+4
-2
No files found.
src/range.c
View file @
206c96e4
...
@@ -380,7 +380,8 @@ mrb_get_values_at(mrb_state *mrb, mrb_value obj, mrb_int olen, mrb_int argc, con
...
@@ -380,7 +380,8 @@ mrb_get_values_at(mrb_state *mrb, mrb_value obj, mrb_int olen, mrb_int argc, con
for
(
i
=
0
;
i
<
argc
;
++
i
)
{
for
(
i
=
0
;
i
<
argc
;
++
i
)
{
if
(
mrb_fixnum_p
(
argv
[
i
]))
{
if
(
mrb_fixnum_p
(
argv
[
i
]))
{
mrb_ary_push
(
mrb
,
result
,
func
(
mrb
,
obj
,
mrb_fixnum
(
argv
[
i
])));
mrb_ary_push
(
mrb
,
result
,
func
(
mrb
,
obj
,
mrb_fixnum
(
argv
[
i
])));
}
else
if
(
mrb_range_beg_len
(
mrb
,
argv
[
i
],
&
beg
,
&
len
,
olen
))
{
}
else
if
(
mrb_range_beg_len
(
mrb
,
argv
[
i
],
&
beg
,
&
len
,
olen
))
{
mrb_int
const
end
=
RARRAY_LEN
(
obj
)
<
beg
+
len
?
RARRAY_LEN
(
obj
)
:
beg
+
len
;
mrb_int
const
end
=
RARRAY_LEN
(
obj
)
<
beg
+
len
?
RARRAY_LEN
(
obj
)
:
beg
+
len
;
for
(
j
=
beg
;
j
<
end
;
++
j
)
{
for
(
j
=
beg
;
j
<
end
;
++
j
)
{
mrb_ary_push
(
mrb
,
result
,
func
(
mrb
,
obj
,
j
));
mrb_ary_push
(
mrb
,
result
,
func
(
mrb
,
obj
,
j
));
...
@@ -389,7 +390,8 @@ mrb_get_values_at(mrb_state *mrb, mrb_value obj, mrb_int olen, mrb_int argc, con
...
@@ -389,7 +390,8 @@ mrb_get_values_at(mrb_state *mrb, mrb_value obj, mrb_int olen, mrb_int argc, con
for
(;
j
<
beg
+
len
;
++
j
)
{
for
(;
j
<
beg
+
len
;
++
j
)
{
mrb_ary_push
(
mrb
,
result
,
mrb_nil_value
());
mrb_ary_push
(
mrb
,
result
,
mrb_nil_value
());
}
}
}
else
{
}
else
{
mrb_raisef
(
mrb
,
E_TYPE_ERROR
,
"invalid values selector: %S"
,
argv
[
i
]);
mrb_raisef
(
mrb
,
E_TYPE_ERROR
,
"invalid values selector: %S"
,
argv
[
i
]);
}
}
}
}
...
...
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