diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-02-09 18:35:20 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-02-09 18:35:20 +0900 |
| commit | 19a08b8455c02eaef06d11cdc07b8011df6acd6d (patch) | |
| tree | 5159549c6965c6ef10e4db7c6862999bdadcf7a5 /src/gc.c | |
| parent | d8a5f1205338f8ed664745ef74c825b74b9bb081 (diff) | |
| parent | 4507985c3ea2b3a7d14745f1f432e544ddeafe93 (diff) | |
| download | mruby-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) { |
