1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* gc.c (rb_objspace_each_objects): adjust indent.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-07-18 03:23:10 +00:00
parent abb855513c
commit ad654fe58e

4
gc.c
View file

@ -2535,9 +2535,9 @@ rb_objspace_each_objects(int (*callback)(void *vstart, void *vend,
i = 0; i = 0;
while (i < heaps_used) { while (i < heaps_used) {
while (0 < i && (uintptr_t)membase < (uintptr_t)objspace->heap.sorted[i-1].slot->membase) while (0 < i && (uintptr_t)membase < (uintptr_t)objspace->heap.sorted[i-1].slot->membase)
i--; i--;
while (i < heaps_used && (uintptr_t)objspace->heap.sorted[i].slot->membase <= (uintptr_t)membase ) while (i < heaps_used && (uintptr_t)objspace->heap.sorted[i].slot->membase <= (uintptr_t)membase )
i++; i++;
if (heaps_used <= i) if (heaps_used <= i)
break; break;
membase = objspace->heap.sorted[i].slot->membase; membase = objspace->heap.sorted[i].slot->membase;