From 6d97a56af17d65425d72c5df973b2fa4fac74a7a Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 31 Oct 2016 23:15:57 +0000 Subject: [PATCH] LLL: support multiple strings in LIT --- liblll/CodeFragment.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liblll/CodeFragment.cpp b/liblll/CodeFragment.cpp index 0f8f26061..f143ca43c 100644 --- a/liblll/CodeFragment.cpp +++ b/liblll/CodeFragment.cpp @@ -287,10 +287,10 @@ void CodeFragment::constructOperation(sp::utree const& _t, CompilerState& _s) if (pos.m_asm.deposit() != 1) error(); } - else if (ii == 2 && !i.tag() && i.which() == sp::utree_type::string_type) + else if (ii >= 2 && !i.tag() && i.which() == sp::utree_type::string_type) { auto sr = i.get, sp::utree_type::string_type>>(); - data = bytes((byte const*)sr.begin(), (byte const*)sr.end()); + data.insert(data.end(), (byte const *)sr.begin(), (byte const*)sr.end()); } else if (ii >= 2 && !i.tag() && i.which() == sp::utree_type::any_type) {