summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 68329052..11078aaa 100644
--- a/gc.c
+++ b/gc.c
@@ -665,7 +665,7 @@ void gc(void)
printf("sweep: freed %d full_gc == %d exhausted == %d\n",
(int) swept, full_gc, exhausted);
#endif
- if (++gc_counter >= FULL_GC_INTERVAL - 1) {
+ if (++gc_counter >= FULL_GC_INTERVAL) {
full_gc_next_time = 1;
gc_counter = 0;
}