diff options
| author | Jun Hiroe <[email protected]> | 2014-04-26 11:39:11 +0900 |
|---|---|---|
| committer | Jun Hiroe <[email protected]> | 2014-04-26 11:52:45 +0900 |
| commit | c2d46a43b2bd3fe3f7ebabb6a030171bc462827a (patch) | |
| tree | cdd3e7491624a4e2248026dad564e6a0296afe8a | |
| parent | 1bf4633ced3cdd880f779ff55eac581077c2c2b5 (diff) | |
| download | mruby-c2d46a43b2bd3fe3f7ebabb6a030171bc462827a.tar.gz mruby-c2d46a43b2bd3fe3f7ebabb6a030171bc462827a.zip | |
Refactor fix_and()
| -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 8a46d9a04..3ea18804e 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -915,13 +915,11 @@ static mrb_value fix_and(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.10 */ |
