Use mrb_true_or_false_value() / in mrb_range_excl().

This commit is contained in:
Masaki Muranaka
2013-03-19 10:41:21 +09:00
parent 011c4c0e08
commit afcbd6c8ef
+1 -1
View File
@@ -91,7 +91,7 @@ mrb_range_excl(mrb_state *mrb, mrb_value range)
{
struct RRange *r = mrb_range_ptr(range);
return r->excl ? mrb_true_value() : mrb_false_value();
return mrb_true_or_false_value(r->excl);
}
static void