Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
codegen.c: forgot to check s2 extensively in super codegen.
  • Loading branch information
matz committed Oct 16, 2021
1 parent 2b19a6c commit be189ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mrbgems/mruby-compiler/core/codegen.c
Expand Up @@ -2830,7 +2830,8 @@ codegen(codegen_scope *s, node *tree, int val)
st++;
}
else {
gen_blkmove(s, s2->ainfo, lv);
if (!s2) push();
else gen_blkmove(s, s2->ainfo, lv);
st++;
}
pop_n(st+1);
Expand Down

0 comments on commit be189ae

Please sign in to comment.