mirror of
https://github.com/KarolS/millfork.git
synced 2025-04-08 18:37:17 +00:00
Fix nonet subtraction warning message
This commit is contained in:
parent
f12463aef0
commit
8cc612976e
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user