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

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-04-13 17:34:06 +09:00
parent 14514ab40d
commit b631e0f8d5
+6 -6
View File
@@ -1029,13 +1029,13 @@ fix_lshift(mrb_state *mrb, mrb_value x)
fix_shift_get_width(mrb, &width);
if (width == 0) {
return(x);
return x;
}
val = mrb_fixnum(x);
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 */
@@ -1054,13 +1054,13 @@ fix_rshift(mrb_state *mrb, mrb_value x)
fix_shift_get_width(mrb, &width);
if (width == 0) {
return(x);
return x;
}
val = mrb_fixnum(x);
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 */