remove unnecessary mrb_float casting; ref #2531

parent 598ff395
......@@ -401,7 +401,7 @@ flo_eq(mrb_state *mrb, mrb_value x)
case MRB_TT_FIXNUM:
return mrb_bool_value(mrb_float(x) == (mrb_float)mrb_fixnum(y));
case MRB_TT_FLOAT:
return mrb_bool_value(mrb_float(x) == (mrb_float)mrb_float(y));
return mrb_bool_value(mrb_float(x) == mrb_float(y));
default:
return mrb_false_value();
}
......
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