Refactor fix_shift_get_width in numeric.c

This commit is contained in:
Jun Hiroe
2014-04-13 00:21:21 +09:00
parent c136d871b9
commit 0823b23623
+1 -2
View File
@@ -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 */