diff options
| author | Jun Hiroe <[email protected]> | 2014-04-26 11:39:59 +0900 |
|---|---|---|
| committer | Jun Hiroe <[email protected]> | 2014-04-26 11:52:45 +0900 |
| commit | 8916381dbaf9199603d834ea27b889c836d0e060 (patch) | |
| tree | 23d94b5d47e437270ca358d15052cc35c4ebf526 /src/numeric.c | |
| parent | c2d46a43b2bd3fe3f7ebabb6a030171bc462827a (diff) | |
| download | mruby-8916381dbaf9199603d834ea27b889c836d0e060.tar.gz mruby-8916381dbaf9199603d834ea27b889c836d0e060.zip | |
Refactor fix_or()
Diffstat (limited to 'src/numeric.c')
| -rw-r--r-- | src/numeric.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/numeric.c b/src/numeric.c index 3ea18804e..86c48523e 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -934,13 +934,11 @@ static mrb_value fix_or(mrb_state *mrb, mrb_value x) { mrb_value y; - mrb_int val; mrb_get_args(mrb, "o", &y); y = bit_coerce(mrb, y); - val = mrb_fixnum(x) | mrb_fixnum(y); - return mrb_fixnum_value(val); + return mrb_fixnum_value(mrb_fixnum(x) | mrb_fixnum(y)); } /* 15.2.8.3.11 */ |
