Commit b1193301 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

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

Refactor mrb_realloc() func in gc.c.
parents 4fce956f 3c197f6a
...@@ -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