1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-07-05 09:28:54 +00:00

Fix nonet subtraction warning message

This commit is contained in:
Karol Stasiak 2018-12-27 14:05:38 +01:00
parent f12463aef0
commit 8cc612976e

View File

@ -791,7 +791,7 @@ object MosExpressionCompiler extends AbstractExpressionCompiler[AssemblyLine] {
assertAllArithmeticBytes("Nonet argument has to be a byte", ctx, params)
params.head match {
case SumExpression(addends, _) =>
if (addends.exists(a => !a._1)) {
if (addends.exists(a => a._1)) {
ctx.log.warn("Nonet subtraction may not work as expected", expr.position)
}
if (addends.size > 2) {