mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Refactor fix_and()
This commit is contained in:
+1
-3
@@ -915,13 +915,11 @@ static mrb_value
|
||||
fix_and(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.10 */
|
||||
|
||||
Reference in New Issue
Block a user