avoid function style parens after "return"; ref #2055

parent 14514ab4
...@@ -1029,13 +1029,13 @@ fix_lshift(mrb_state *mrb, mrb_value x) ...@@ -1029,13 +1029,13 @@ fix_lshift(mrb_state *mrb, mrb_value x)
fix_shift_get_width(mrb, &width); fix_shift_get_width(mrb, &width);
if (width == 0) { if (width == 0) {
return(x); return x;
} }
val = mrb_fixnum(x); val = mrb_fixnum(x);
if (width < 0) { if (width < 0) {
return(rshift(val, -width)); return rshift(val, -width);
} }
return(lshift(mrb, val, width)); return lshift(mrb, val, width);
} }
/* 15.2.8.3.13 */ /* 15.2.8.3.13 */
...@@ -1054,13 +1054,13 @@ fix_rshift(mrb_state *mrb, mrb_value x) ...@@ -1054,13 +1054,13 @@ fix_rshift(mrb_state *mrb, mrb_value x)
fix_shift_get_width(mrb, &width); fix_shift_get_width(mrb, &width);
if (width == 0) { if (width == 0) {
return(x); return x;
} }
val = mrb_fixnum(x); val = mrb_fixnum(x);
if (width < 0) { if (width < 0) {
return(lshift(mrb, val, -width)); return lshift(mrb, val, -width);
} }
return(rshift(val, width)); return rshift(val, width);
} }
/* 15.2.8.3.23 */ /* 15.2.8.3.23 */
......
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