Use mrb_true_or_false_value() / in mrb_ary_empty_p().

This commit is contained in:
Masaki Muranaka
2013-03-19 10:29:51 +09:00
parent 9d8c1eccbe
commit 3ebcb9c1a3
+1 -1
View File
@@ -878,7 +878,7 @@ mrb_ary_empty_p(mrb_state *mrb, mrb_value self)
{
struct RArray *a = mrb_ary_ptr(self);
return ((a->len == 0)? mrb_true_value(): mrb_false_value());
return mrb_true_or_false_value(a->len == 0);
}
mrb_value