summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-04-13 17:34:06 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-04-13 17:34:06 +0900
commitb631e0f8d5828e57d0f0ef1712dcb36ecd4a6029 (patch)
tree8bdcdfc30025630e34aa4aedf3aa35e4bace98ec /src
parent14514ab40daccb81fbb26ba486a653f9875ff3a6 (diff)
downloadmruby-b631e0f8d5828e57d0f0ef1712dcb36ecd4a6029.tar.gz
mruby-b631e0f8d5828e57d0f0ef1712dcb36ecd4a6029.zip
avoid function style parens after "return"; ref #2055
Diffstat (limited to 'src')
-rw-r--r--src/numeric.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/numeric.c b/src/numeric.c
index e5fc59ec8..d575ec7dd 100644
--- a/src/numeric.c
+++ b/src/numeric.c
@@ -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 */