Commit 50a6b48d authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2497 from cremno/fix-conversion-warnings

fix conversion warnings (in gc.c)
parents 37a75b09 a70413c4
......@@ -949,7 +949,7 @@ static void
incremental_gc_until(mrb_state *mrb, enum gc_state to_state)
{
do {
incremental_gc(mrb, ~0);
incremental_gc(mrb, SIZE_MAX);
} while (mrb->gc_state != to_state);
}
......@@ -1162,7 +1162,7 @@ gc_start(mrb_state *mrb, mrb_value obj)
static mrb_value
gc_enable(mrb_state *mrb, mrb_value obj)
{
int old = mrb->gc_disabled;
mrb_bool old = mrb->gc_disabled;
mrb->gc_disabled = FALSE;
......@@ -1184,7 +1184,7 @@ gc_enable(mrb_state *mrb, mrb_value obj)
static mrb_value
gc_disable(mrb_state *mrb, mrb_value obj)
{
int old = mrb->gc_disabled;
mrb_bool old = mrb->gc_disabled;
mrb->gc_disabled = TRUE;
......@@ -1258,7 +1258,7 @@ gc_step_ratio_set(mrb_state *mrb, mrb_value obj)
}
static void
change_gen_gc_mode(mrb_state *mrb, mrb_int enable)
change_gen_gc_mode(mrb_state *mrb, mrb_bool enable)
{
if (is_generational(mrb) && !enable) {
clear_all_old(mrb);
......
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