From 927c39585cd7f3599f884566c85e551111cae6f0 Mon Sep 17 00:00:00 2001 From: Karol Stasiak Date: Tue, 15 Oct 2019 00:51:16 +0200 Subject: [PATCH] Fix non-compiling code An incremental compiler can be both a blessing and a curse --- .../scala/millfork/compiler/z80/Z80ExpressionCompiler.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/millfork/compiler/z80/Z80ExpressionCompiler.scala b/src/main/scala/millfork/compiler/z80/Z80ExpressionCompiler.scala index a52033d1..b1307298 100644 --- a/src/main/scala/millfork/compiler/z80/Z80ExpressionCompiler.scala +++ b/src/main/scala/millfork/compiler/z80/Z80ExpressionCompiler.scala @@ -2051,9 +2051,9 @@ object Z80ExpressionCompiler extends AbstractExpressionCompiler[ZLine] { ctx.log.debug("Weird branch of storeLarge reached!") if (ctx.log.traceEnabled) { ctx.log.trace("reads:") - reads.foreach(l => ctx.log.trace(_, None)) + reads.flatten.foreach(l => ctx.log.trace(l.toString, None)) ctx.log.trace("stores:") - stores.foreach(l => ctx.log.trace(_, None)) + stores.flatten.foreach(l => ctx.log.trace(l.toString, None)) } val fixedReads = (reads.head.init ++ List(ZLine.ld8(B, H), reads.head.last)) :: reads.tail.map(_.map { case l@ZLine0(LD, TwoRegisters(reg, H), _) => l.copy(registers = TwoRegisters(reg, B))