Commit db9fc2be authored by Masaki Muranaka's avatar Masaki Muranaka

Use mrb_true_or_false_value() / in num_eql().

parent 872536a8
......@@ -380,15 +380,17 @@ static mrb_value
num_eql(mrb_state *mrb, mrb_value x)
{
mrb_value y;
mrb_bool eql_p;
mrb_get_args(mrb, "o", &y);
if (mrb_type(x) != mrb_type(y)) return mrb_false_value();
if (mrb_equal(mrb, x, y)) {
return mrb_true_value();
if (mrb_type(x) != mrb_type(y)) {
eql_p = 0;
}
else {
return mrb_false_value();
eql_p = mrb_equal(mrb, x, y);
}
return mrb_true_or_false_value(eql_p);
}
static mrb_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