summaryrefslogtreecommitdiffhomepage
path: root/src/object.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-09-04 04:01:49 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-09-04 04:01:49 +0900
commit8bb7962eb8e193e94d866626f07d52b63ff2016c (patch)
tree71c5ca1edd8b461c2309d2c24a0b9c21753bdc59 /src/object.c
parent7967c76e1473a72bc91a436a16df7404dcd0caf2 (diff)
parent26bee4a16b5763b407a842bd1697389961600d68 (diff)
downloadmruby-8bb7962eb8e193e94d866626f07d52b63ff2016c.tar.gz
mruby-8bb7962eb8e193e94d866626f07d52b63ff2016c.zip
Merge branch 'module-prepend' of https://github.com/polyfox/mruby into polyfox-module-prepend
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/object.c b/src/object.c
index f8f41bfe8..c834ee04f 100644
--- a/src/object.c
+++ b/src/object.c
@@ -487,6 +487,7 @@ mrb_obj_is_kind_of(mrb_state *mrb, mrb_value obj, struct RClass *c)
mrb_raise(mrb, E_TYPE_ERROR, "class or module required");
}
+ c = c->origin;
while (cl) {
if (cl == c || cl->mt == c->mt)
return TRUE;