summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hash.c b/hash.c
index dc29683c5c..0cbc46baf5 100644
--- a/hash.c
+++ b/hash.c
@@ -41,6 +41,7 @@ has_extra_methods(VALUE klass)
while (c != base) {
st_table *mtbl = RCLASS_M_TBL(c);
if (mtbl && mtbl->num_entries) return klass;
+ c = RCLASS_SUPER(c);
}
return 0;
}