From b00d45b095e8586d07b0db51dde2794ab77b21ec Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Wed, 6 Dec 2017 07:53:00 +0900 Subject: `mrb_method_search_vm()` should gives the defined class. Otherwise `super` may call a wrong method. --- include/mruby.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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; }; -- cgit v1.2.3