mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Refactor mrb_realloc() func in gc.c.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user