From 0823b23623f17adb04a9af2a6ef1257ed585d03a Mon Sep 17 00:00:00 2001 From: Jun Hiroe Date: Sun, 13 Apr 2014 00:21:21 +0900 Subject: Refactor fix_shift_get_width in numeric.c --- src/numeric.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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 */ -- cgit v1.2.3