diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c index 64f4702a7..901e87934 100644 --- a/mrbgems/mruby-compiler/core/codegen.c +++ b/mrbgems/mruby-compiler/core/codegen.c @@ -1383,7 +1383,7 @@ codegen(codegen_scope *s, node *tree, int val) break; case NODE_LAMBDA: - { + if (val) { int idx = lambda_body(s, tree, 1); genop(s, MKOP_Abc(OP_LAMBDA, cursp(), idx, OP_L_LAMBDA)); @@ -1392,7 +1392,7 @@ codegen(codegen_scope *s, node *tree, int val) break; case NODE_BLOCK: - { + if (val) { int idx = lambda_body(s, tree, 1); genop(s, MKOP_Abc(OP_LAMBDA, cursp(), idx, OP_L_BLOCK));