Commit 0ee0eb91 authored by Masaki Muranaka's avatar Masaki Muranaka

Use mrb_true_or_false_value() / in gc_disable().

parent c1025264
......@@ -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);
}
/*
......
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