diff options
Diffstat (limited to 'src/variable.c')
| -rw-r--r-- | src/variable.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/variable.c b/src/variable.c index 93fe8aba9..f0bfa19cc 100644 --- a/src/variable.c +++ b/src/variable.c @@ -948,6 +948,7 @@ find_class_sym(mrb_state *mrb, struct RClass *outer, struct RClass *c) struct csym_arg arg; if (!outer) return 0; + if (outer == c) return 0; arg.c = c; arg.sym = 0; iv_foreach(mrb, outer->iv, csym_i, &arg); |
