mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
avoid function style parens after "return"; ref #2055
This commit is contained in:
+6
-6
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user