Commit 0823b236 authored by Jun Hiroe's avatar Jun Hiroe

Refactor fix_shift_get_width in numeric.c

parent c136d871
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment