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

* gc.c (objspace_each_objects): fix return with no value.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-10-21 14:52:02 +00:00
parent 125b4b7020
commit 48b4512f76
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Thu Oct 21 23:52:00 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* gc.c (objspace_each_objects): fix return with no value.
Thu Oct 21 23:47:12 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dir.c (dir_initialize): remove useless intermediate variable.

2
gc.c
View file

@ -2545,7 +2545,7 @@ objspace_each_objects(VALUE arg)
}
if (pstart != pend) {
if ((*(int (*)(void *, void *, size_t, void *))args[0])(pstart, pend, sizeof(RVALUE), (void *)args[1])) {
return;
break;
}
}
}