summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJun Hiroe <[email protected]>2013-07-01 22:00:08 +0900
committerJun Hiroe <[email protected]>2013-07-01 22:00:08 +0900
commit3c197f6ab1e091982ead76346e0335bfacf3adb7 (patch)
tree09ee4718c3df0ea08b4cbb8a0948a1dd0e5ec90d /src
parent997c073627c32e292b36a488b8e9711daa6e4592 (diff)
downloadmruby-3c197f6ab1e091982ead76346e0335bfacf3adb7.tar.gz
mruby-3c197f6ab1e091982ead76346e0335bfacf3adb7.zip
Refactor mrb_realloc() func in gc.c.
Diffstat (limited to 'src')
-rw-r--r--src/gc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gc.c b/src/gc.c
index 6fc400e32..dcbfaa890 100644
--- a/src/gc.c
+++ b/src/gc.c
@@ -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;