summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-10 15:44:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-10 15:44:36 +0000
commitbb34d7163ddccabb1a3b0553330ee56ef77d2291 (patch)
treed0d33aca2e335d6a37a5675c9c0687325ea43378 /eval.c
parentfe06b5a0e92bf7c0bb15c274a5daf26b2f18cd3b (diff)
* eval.c (rb_mod_define_method): initialize orig_func too.
(ruby-bugs-ja:PR#330) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 9d45c54..9eac09f 100644
--- a/eval.c
+++ b/eval.c
@@ -7136,6 +7136,7 @@ rb_mod_define_method(argc, argv, mod)
body = bind_clone(body);
Data_Get_Struct(body, struct BLOCK, block);
block->frame.last_func = id;
+ block->frame.orig_func = id;
block->frame.last_class = mod;
node = NEW_BMETHOD(body);
}