Commit 8916381d authored by Jun Hiroe's avatar Jun Hiroe

Refactor fix_or()

parent c2d46a43
......@@ -934,13 +934,11 @@ static mrb_value
fix_or(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.11 */
......
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