summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-07 02:53:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-07 02:53:24 +0000
commit4632511aa9723ecf1de5d255f58d6537f6006438 (patch)
tree7821aa3eeaae0a0588c1e2e63006d083d06e9c3f
parentdd529e98045e98083071198b8d76dd63d22065c2 (diff)
* object.c (rb_mod_initialize): since module_eval no longer passes
self, use module_exec instead. fixed: [ruby-dev:29637] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--object.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 720af5015ae..40bc30a48a0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Oct 7 11:53:04 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * object.c (rb_mod_initialize): since module_eval no longer passes
+ self, use module_exec instead. fixed: [ruby-dev:29637]
+
Sat Oct 7 00:27:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* class.c (rb_include_module): remove unnecessary check.
diff --git a/object.c b/object.c
index 89742b2ca96..a4cfda9b31f 100644
--- a/object.c
+++ b/object.c
@@ -1205,7 +1205,7 @@ static VALUE
rb_mod_initialize(VALUE module)
{
if (rb_block_given_p()) {
- rb_mod_module_eval(0, 0, module);
+ rb_mod_module_exec(1, &module, module);
}
return Qnil;
}