summaryrefslogtreecommitdiffhomepage
path: root/src/variable.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-11-17 20:04:37 +0900
committerGitHub <[email protected]>2017-11-17 20:04:37 +0900
commitd01003ce3a976320b752bf75fc5630097aeb7d7c (patch)
tree2dc5681a47a3ee898cef8ea529fa97e2f2ccb70e /src/variable.c
parentc8da60275281dc54310aa0d7e45085c55ee8bda3 (diff)
parentddd32d74e1dca2f9bc482c7fe8b4ebe27acd21b1 (diff)
downloadmruby-d01003ce3a976320b752bf75fc5630097aeb7d7c.tar.gz
mruby-d01003ce3a976320b752bf75fc5630097aeb7d7c.zip
Merge pull request #3851 from ukrainskiysergey/variable_c_cosmetic_changes
Cosmetic changes in variable.c
Diffstat (limited to 'src/variable.c')
-rw-r--r--src/variable.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/variable.c b/src/variable.c
index c82f2a822..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;
}
@@ -889,7 +889,7 @@ mrb_const_defined_0(mrb_state *mrb, mrb_value mod, mrb_sym id, mrb_bool exclude,
{
struct RClass *klass = mrb_class_ptr(mod);
struct RClass *tmp;
- mrb_bool mod_retry = 0;
+ mrb_bool mod_retry = FALSE;
tmp = klass;
retry:
@@ -901,7 +901,7 @@ retry:
tmp = tmp->super;
}
if (!exclude && !mod_retry && (klass->tt == MRB_TT_MODULE)) {
- mod_retry = 1;
+ mod_retry = TRUE;
tmp = mrb->object_class;
goto retry;
}