summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-07 15:46:49 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-07 15:46:49 +0000
commit250d6dfcb4fbbf65219cec791b648aaa17440497 (patch)
tree65da473267d0aa993e237539debfb0094d641ee7 /eval.c
parentd86f0de09397e9e5342965594e78e261bfca7787 (diff)
* eval.c (call_trace_func): klass parameter should be a
class/module that defines calling method. [ruby-talk:169307] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 7465314191..ceb95e4d21 100644
--- a/eval.c
+++ b/eval.c
@@ -2628,7 +2628,7 @@ call_trace_func(event, node, self, id, klass)
klass = RBASIC(klass)->klass;
}
else if (FL_TEST(klass, FL_SINGLETON)) {
- klass = self;
+ klass = rb_iv_get(klass, "__attached__");
}
}
PUSH_TAG(PROT_NONE);