aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-05-30 05:21:51 +0800
committerGav Wood <i@gavwood.com>2014-05-30 05:21:51 +0800
commitde85b070b8c65f9ea7e1dd261467d759798629f7 (patch)
tree34f70baf277fefded337d32fdf4cb9ef7a669124
parent362cfb350e8cd2ea58615877e3f1d37b95f0d0bf (diff)
downloaddexon-solidity-de85b070b8c65f9ea7e1dd261467d759798629f7.tar.gz
dexon-solidity-de85b070b8c65f9ea7e1dd261467d759798629f7.tar.zst
dexon-solidity-de85b070b8c65f9ea7e1dd261467d759798629f7.zip
Fix for when/unless.
-rw-r--r--CodeFragment.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/CodeFragment.cpp b/CodeFragment.cpp
index 299cda5f..f30fba95 100644
--- a/CodeFragment.cpp
+++ b/CodeFragment.cpp
@@ -385,7 +385,8 @@ void CodeFragment::constructOperation(sp::utree const& _t, CompilerState& _s)
auto end = m_asm.appendJumpI();
m_asm.onePath();
m_asm.otherPath();
- m_asm << code[1].m_asm << end.tag();
+ m_asm.append(code[1].m_asm, 0);
+ m_asm << end.tag();
m_asm.donePaths();
}
else if (us == "WHILE")