diff options
| author | Jun Hiroe <[email protected]> | 2014-04-13 00:21:21 +0900 |
|---|---|---|
| committer | Jun Hiroe <[email protected]> | 2014-04-16 13:42:40 +0900 |
| commit | 0823b23623f17adb04a9af2a6ef1257ed585d03a (patch) | |
| tree | 99a7182a148d763695e1a0c05477383998aa2a66 /src/numeric.c | |
| parent | c136d871b99644c9593bd73a51e026d3f9257e7f (diff) | |
| download | mruby-0823b23623f17adb04a9af2a6ef1257ed585d03a.tar.gz mruby-0823b23623f17adb04a9af2a6ef1257ed585d03a.zip | |
Refactor fix_shift_get_width in numeric.c
Diffstat (limited to 'src/numeric.c')
| -rw-r--r-- | src/numeric.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/numeric.c b/src/numeric.c index ef9308aea..7490211af 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -1009,8 +1009,7 @@ fix_shift_get_width(mrb_state *mrb, mrb_int *width) mrb_value y; mrb_get_args(mrb, "o", &y); - y = bit_coerce(mrb, y); - *width = mrb_fixnum(y); + *width = mrb_fixnum(bit_coerce(mrb, y)); } /* 15.2.8.3.12 */ |
