Permalink
Browse files

OP_LAMBDA generation should honor VAL/NOVAL; fix #3580

  • Loading branch information...
matz committed Apr 10, 2017
1 parent db47ae5 commit fff4a4ed34b2692227b0f9d5773872b8410fd08d
Showing with 2 additions and 2 deletions.
  1. +2 −2 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));

0 comments on commit fff4a4e

Please sign in to comment.