diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-10-23 11:35:26 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-10-23 11:35:26 +0900 |
| commit | 413528ce803135dd63423047accaea142c283fcd (patch) | |
| tree | 84683f8325243d6f3bce6d300de12437b64d1bcb /src/codegen.c | |
| parent | e05bbd45bb328b6ce3af0056a3d314ce5068abd6 (diff) | |
| download | mruby-413528ce803135dd63423047accaea142c283fcd.tar.gz mruby-413528ce803135dd63423047accaea142c283fcd.zip | |
adjust regsiter stack for NODE_OP_ASGN; close #499
Diffstat (limited to 'src/codegen.c')
| -rw-r--r-- | src/codegen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/codegen.c b/src/codegen.c index 1f087b2cd..df5bc2acf 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -1403,6 +1403,7 @@ codegen(codegen_scope *s, node *tree, int val) codegen(s, tree->cdr->cdr->car, VAL); pop(); gen_assignment(s, tree->car, cursp(), val); + if (val) pop(); dispatch(s, pos); break; } |
