diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-13 17:34:06 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-13 17:34:06 +0900 |
| commit | b631e0f8d5828e57d0f0ef1712dcb36ecd4a6029 (patch) | |
| tree | 8bdcdfc30025630e34aa4aedf3aa35e4bace98ec | |
| parent | 14514ab40daccb81fbb26ba486a653f9875ff3a6 (diff) | |
| download | mruby-b631e0f8d5828e57d0f0ef1712dcb36ecd4a6029.tar.gz mruby-b631e0f8d5828e57d0f0ef1712dcb36ecd4a6029.zip | |
avoid function style parens after "return"; ref #2055
| -rw-r--r-- | src/numeric.c | 12 |
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 */ |
