summaryrefslogtreecommitdiffhomepage
path: root/src/variable.c
diff options
context:
space:
mode:
authorUkrainskiy Sergey <[email protected]>2017-11-17 19:43:57 +0900
committerUkrainskiy Sergey <[email protected]>2017-11-17 19:43:57 +0900
commitddd32d74e1dca2f9bc482c7fe8b4ebe27acd21b1 (patch)
tree2dc5681a47a3ee898cef8ea529fa97e2f2ccb70e /src/variable.c
parent74714c8feec46f8257ec6f8d9e98a1520a9fe2f8 (diff)
downloadmruby-ddd32d74e1dca2f9bc482c7fe8b4ebe27acd21b1.tar.gz
mruby-ddd32d74e1dca2f9bc482c7fe8b4ebe27acd21b1.zip
Changed the assignment of a variable in variable.c
Diffstat (limited to 'src/variable.c')
-rw-r--r--src/variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/variable.c b/src/variable.c
index 0da59c118..be06d1a04 100644
--- a/src/variable.c
+++ b/src/variable.c
@@ -681,7 +681,7 @@ L_RETRY:
c = c->super;
}
if (!retry && base && base->tt == MRB_TT_MODULE) {
- c = mrb->object_class;
+ c = oclass;
retry = TRUE;
goto L_RETRY;
}