summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-12-06 07:53:00 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-12-06 17:28:20 +0900
commitb00d45b095e8586d07b0db51dde2794ab77b21ec (patch)
tree97f6c9d6e1e80d1223ac660262761c1f7f36cd24 /include
parent4a99f4949e64cf6232b6bae16734016906d42527 (diff)
downloadmruby-b00d45b095e8586d07b0db51dde2794ab77b21ec.tar.gz
mruby-b00d45b095e8586d07b0db51dde2794ab77b21ec.zip
`mrb_method_search_vm()` should gives the defined class.
Otherwise `super` may call a wrong method.
Diffstat (limited to 'include')
-rw-r--r--include/mruby.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 5c8d38200..fc9656fbe 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -186,7 +186,7 @@ typedef struct {
#ifdef MRB_METHOD_CACHE
struct mrb_cache_entry {
- struct RClass *c;
+ struct RClass *c, *c0;
mrb_sym mid;
mrb_method_t m;
};