Merge pull request #1330 from suzukaze/refactor-gc-c

Refactor mrb_realloc() func in gc.c.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-07-02 04:11:04 -07:00
+2 -2
View File
@@ -175,12 +175,12 @@ mrb_realloc(mrb_state *mrb, void *p, size_t len)
/* mrb_panic(mrb); */
}
else {
mrb->out_of_memory = 1;
mrb->out_of_memory = TRUE;
mrb_raise(mrb, E_RUNTIME_ERROR, "Out of memory");
}
}
else {
mrb->out_of_memory = 0;
mrb->out_of_memory = FALSE;
}
return p2;