remove unnecessary mrb_float casting; ref #2531

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-08-13 21:58:52 +09:00
parent 598ff395b4
commit 170ba511f2
+1 -1
View File
@@ -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();
}