Use mrb_true_or_false_value() / in flo_eq().

This commit is contained in:
Masaki Muranaka
2013-03-19 10:39:20 +09:00
parent db9fc2be8d
commit 42ef934da3
+1 -1
View File
@@ -432,7 +432,7 @@ flo_eq(mrb_state *mrb, mrb_value x)
return num_equal(mrb, x, y);
}
a = mrb_float(x);
return (a == b)?mrb_true_value():mrb_false_value();
return mrb_true_or_false_value(a == b);
}
/* 15.2.8.3.18 */