diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-07-02 04:11:04 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-07-02 04:11:04 -0700 |
| commit | b119330158402f072f9de543a63667792f067102 (patch) | |
| tree | 789b45c70ef9c831df2cf1709053858a65cbff47 /src | |
| parent | 4fce956f3f11f280254b1bc19b859b7399750056 (diff) | |
| parent | 3c197f6ab1e091982ead76346e0335bfacf3adb7 (diff) | |
| download | mruby-b119330158402f072f9de543a63667792f067102.tar.gz mruby-b119330158402f072f9de543a63667792f067102.zip | |
Merge pull request #1330 from suzukaze/refactor-gc-c
Refactor mrb_realloc() func in gc.c.
Diffstat (limited to 'src')
| -rw-r--r-- | src/gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
