Use mrb_true_or_false_value() / in gc_disable().

This commit is contained in:
Masaki Muranaka
2013-03-19 10:33:46 +09:00
parent c102526434
commit 0ee0eb916b
+2 -2
View File
@@ -1004,8 +1004,8 @@ gc_disable(mrb_state *mrb, mrb_value obj)
int old = mrb->gc_disabled;
mrb->gc_disabled = TRUE;
if (old) return mrb_true_value();
return mrb_false_value();
return mrb_true_or_false_value(old);
}
/*