summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorfleuria <[email protected]>2013-08-12 14:12:33 +0800
committerfleuria <[email protected]>2013-08-12 14:18:09 +0800
commit6dcf2ffb08ec0f2cb8921255ffa6e036928d465a (patch)
tree283e81e8b7be56633e583615cf30d7313d5c9f6b /src
parent4f1fe9a3ee7907bcba9c5a5396eb4cce324638e2 (diff)
downloadmruby-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.c3
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