Commit 3c197f6a authored by Jun Hiroe's avatar Jun Hiroe

Refactor mrb_realloc() func in gc.c.

parent 997c0736
...@@ -175,12 +175,12 @@ mrb_realloc(mrb_state *mrb, void *p, size_t len) ...@@ -175,12 +175,12 @@ mrb_realloc(mrb_state *mrb, void *p, size_t len)
/* mrb_panic(mrb); */ /* mrb_panic(mrb); */
} }
else { else {
mrb->out_of_memory = 1; mrb->out_of_memory = TRUE;
mrb_raise(mrb, E_RUNTIME_ERROR, "Out of memory"); mrb_raise(mrb, E_RUNTIME_ERROR, "Out of memory");
} }
} }
else { else {
mrb->out_of_memory = 0; mrb->out_of_memory = FALSE;
} }
return p2; return p2;
......
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