Skip to content
Permalink
Browse files
Use while statement instead of for statement
  • Loading branch information
keizo042 committed Apr 12, 2017
1 parent 4fca570 commit d4205c9b20e7ac0017d80314ec65c906308f04c9
Showing 1 changed file with 2 additions and 1 deletion.
@@ -953,7 +953,8 @@ mrb_vm_const_get(mrb_state *mrb, mrb_sym sym)
if (c->iv && iv_get(mrb, c->iv, sym, &v)) {
return v;
}
for (c2 = c; c2 && c2->tt == MRB_TT_SCLASS;) {
c2 = c;
while (c2 && c2->tt == MRB_TT_SCLASS) {
mrb_value klass;
klass = mrb_obj_iv_get(mrb, (struct RObject *)c2,
mrb_intern_lit(mrb, "__attached__"));

0 comments on commit d4205c9

Please sign in to comment.