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

merges r28675 from trunk into ruby_1_9_2.

--
* gc.c (rb_objspace_each_objects): adjust indent.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2010-07-24 10:37:39 +00:00
parent 0aaeb41432
commit 41aaafd35a

6
gc.c
View file

@ -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;