aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--gc.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ed0dc957f5..7dd93ac53f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/gc.c b/gc.c
index ad49fd505d..05ef077102 100644
--- a/gc.c
+++ b/gc.c
@@ -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;
}
}
}