summaryrefslogtreecommitdiffhomepage
path: root/src/gc.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-02-09 18:35:20 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-02-09 18:35:20 +0900
commit19a08b8455c02eaef06d11cdc07b8011df6acd6d (patch)
tree5159549c6965c6ef10e4db7c6862999bdadcf7a5 /src/gc.c
parentd8a5f1205338f8ed664745ef74c825b74b9bb081 (diff)
parent4507985c3ea2b3a7d14745f1f432e544ddeafe93 (diff)
downloadmruby-19a08b8455c02eaef06d11cdc07b8011df6acd6d.tar.gz
mruby-19a08b8455c02eaef06d11cdc07b8011df6acd6d.zip
Merge pull request #1674 from cremno/mrb_bool-FALSE-TRUE
use mrb_bool, FALSE and TRUE more
Diffstat (limited to 'src/gc.c')
-rw-r--r--src/gc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gc.c b/src/gc.c
index 934dcee13..028133ea2 100644
--- a/src/gc.c
+++ b/src/gc.c
@@ -834,13 +834,13 @@ incremental_sweep_phase(mrb_state *mrb, size_t limit)
RVALUE *p = page->objects;
RVALUE *e = p + MRB_HEAP_PAGE_SIZE;
size_t freed = 0;
- int dead_slot = 1;
+ mrb_bool dead_slot = TRUE;
int full = (page->freelist == NULL);
if (is_minor_gc(mrb) && page->old) {
/* skip a slot which doesn't contain any young object */
p = e;
- dead_slot = 0;
+ dead_slot = FALSE;
}
while (p<e) {
if (is_dead(mrb, &p->as.basic)) {