summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-23 01:53:20 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-23 01:53:20 +0000
commit9b3c15dfd7520ff8bce3fc768dbe2aba2fecbd27 (patch)
tree057c505e8a9d1253766860250322daea97469c33
parentb81b47358438b376fd5b9b14c10c5b0412d302fe (diff)
downloadruby-9b3c15dfd7520ff8bce3fc768dbe2aba2fecbd27.tar.gz
* class.c (rb_mod_ancestors): result list may include singleton
classes. [ruby-core:09604] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/matzruby@11557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--class.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6e904a5ef8..fa5b0c5e44 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -193,6 +193,11 @@ Wed Dec 20 12:54:31 2006 Koichi Sasada <ko1@atdot.net>
* Convert CVS repository to Subversion repository.
+Tue Dec 19 10:41:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * class.c (rb_mod_ancestors): result list may include singleton
+ classes. [ruby-core:09604]
+
Mon Dec 18 08:36:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/cgi.rb (CGI::Cookie::initialize): Array(string) no longer
diff --git a/class.c b/class.c
index c7fc1df370..afe313ddde 100644
--- a/class.c
+++ b/class.c
@@ -473,8 +473,6 @@ rb_mod_ancestors(VALUE mod)
VALUE p, ary = rb_ary_new();
for (p = mod; p; p = RCLASS(p)->super) {
- if (FL_TEST(p, FL_SINGLETON))
- continue;
if (BUILTIN_TYPE(p) == T_ICLASS) {
rb_ary_push(ary, RBASIC(p)->klass);
}