Commit ea959d44 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2535 from kkkkkt/remove-unused-variable

removed unused variable in range_beg_len
parents 6496195d d5fd823d
......@@ -237,13 +237,13 @@ mrb_range_include(mrb_state *mrb, mrb_value range)
static mrb_bool
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);
if (mrb_type(range) != MRB_TT_RANGE) return FALSE;
beg = b = mrb_int(mrb, r->edges->beg);
end = e = mrb_int(mrb, r->edges->end);
beg = mrb_int(mrb, r->edges->beg);
end = mrb_int(mrb, r->edges->end);
if (beg < 0) {
beg += len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment