mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
remove unnecessary mrb_float casting; ref #2531
This commit is contained in:
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user