diff options
-rw-r--r-- | gc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2351,11 +2351,11 @@ rb_objspace_each_objects(int (*callback)(void *vstart, void *vend, i = 0; while (i < heaps_used) { while (0 < i && (uintptr_t)membase < (uintptr_t)heaps[i-1].membase) - i--; + i--; while (i < heaps_used && (uintptr_t)heaps[i].membase <= (uintptr_t)membase ) - i++; + i++; if (heaps_used <= i) - break; + break; membase = heaps[i].membase; pstart = heaps[i].slot; |