diff options
| author | fleuria <[email protected]> | 2013-08-12 14:12:33 +0800 |
|---|---|---|
| committer | fleuria <[email protected]> | 2013-08-12 14:18:09 +0800 |
| commit | 6dcf2ffb08ec0f2cb8921255ffa6e036928d465a (patch) | |
| tree | 283e81e8b7be56633e583615cf30d7313d5c9f6b /src | |
| parent | 4f1fe9a3ee7907bcba9c5a5396eb4cce324638e2 (diff) | |
| download | mruby-6dcf2ffb08ec0f2cb8921255ffa6e036928d465a.tar.gz mruby-6dcf2ffb08ec0f2cb8921255ffa6e036928d465a.zip | |
fix #1459
gen_vmassignment() missed a pop() in a conditional branch, but we have
to keep each conditional branch 's stack depth the same all the time
when it left execution.
Diffstat (limited to 'src')
| -rw-r--r-- | src/codegen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/codegen.c b/src/codegen.c index 9b7116168..50916a473 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -959,6 +959,9 @@ gen_vmassignment(codegen_scope *s, node *tree, int rhs, int val) } } } + else { + pop(); + } } static void |
