summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-07 12:42:52 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-07 12:42:52 +0000
commitd5ffbb20e80202319957c74e75fbdd628cbda43b (patch)
tree543a9b39bde92020d65292e27f1f2f93ab9b850a
parent16291a0db719e9c174ab6890eb0c50ebef1cf8f7 (diff)
* eval.c (rb_mod_modfunc): should break if m has no super class.
[ruby-dev:22498] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--eval.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index dcdf6b8b7f..4230660260 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -45,6 +45,11 @@ Wed Jan 7 08:21:04 2004 Dave Thomas <dave@pragprog.com>
line in files that would otherwise be treated as
plain text.
+Tue Jan 6 22:13:34 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_mod_modfunc): should break if m has no super class.
+ [ruby-dev:22498]
+
Tue Jan 6 21:51:37 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (fptr_finalize): should save errno just after failure.
diff --git a/eval.c b/eval.c
index e764e5c23e..d3de7f4db9 100644
--- a/eval.c
+++ b/eval.c
@@ -7055,6 +7055,7 @@ rb_mod_modfunc(argc, argv, module)
break; /* normal case: need not to follow 'super' link */
}
m = RCLASS(m)->super;
+ if (!m) break;
}
rb_add_method(rb_singleton_class(module), id, body->nd_body, NOEX_PUBLIC);
}