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
ea959d44
Commit
ea959d44
authored
Aug 16, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2535 from kkkkkt/remove-unused-variable
removed unused variable in range_beg_len
parents
6496195d
d5fd823d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/range.c
src/range.c
+3
-3
No files found.
src/range.c
View file @
ea959d44
...
@@ -237,13 +237,13 @@ mrb_range_include(mrb_state *mrb, mrb_value range)
...
@@ -237,13 +237,13 @@ mrb_range_include(mrb_state *mrb, mrb_value range)
static
mrb_bool
static
mrb_bool
range_beg_len
(
mrb_state
*
mrb
,
mrb_value
range
,
mrb_int
*
begp
,
mrb_int
*
lenp
,
mrb_int
len
,
mrb_bool
trunc
)
range_beg_len
(
mrb_state
*
mrb
,
mrb_value
range
,
mrb_int
*
begp
,
mrb_int
*
lenp
,
mrb_int
len
,
mrb_bool
trunc
)
{
{
mrb_int
beg
,
end
,
b
,
e
;
mrb_int
beg
,
end
;
struct
RRange
*
r
=
mrb_range_ptr
(
range
);
struct
RRange
*
r
=
mrb_range_ptr
(
range
);
if
(
mrb_type
(
range
)
!=
MRB_TT_RANGE
)
return
FALSE
;
if
(
mrb_type
(
range
)
!=
MRB_TT_RANGE
)
return
FALSE
;
beg
=
b
=
mrb_int
(
mrb
,
r
->
edges
->
beg
);
beg
=
mrb_int
(
mrb
,
r
->
edges
->
beg
);
end
=
e
=
mrb_int
(
mrb
,
r
->
edges
->
end
);
end
=
mrb_int
(
mrb
,
r
->
edges
->
end
);
if
(
beg
<
0
)
{
if
(
beg
<
0
)
{
beg
+=
len
;
beg
+=
len
;
...
...
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