From 72265ac38ad65b0adc07e7ea7ece26baea9b356c Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Thu, 29 May 2014 20:30:56 +0200 Subject: [PATCH] Fix for unless/when. --- CodeFragment.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CodeFragment.cpp b/CodeFragment.cpp index 299cda5f6..f30fba956 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")