mirror of
https://github.com/KarolS/millfork.git
synced 2024-08-27 14:29:40 +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)
|
assertAllArithmeticBytes("Nonet argument has to be a byte", ctx, params)
|
||||||
params.head match {
|
params.head match {
|
||||||
case SumExpression(addends, _) =>
|
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)
|
ctx.log.warn("Nonet subtraction may not work as expected", expr.position)
|
||||||
}
|
}
|
||||||
if (addends.size > 2) {
|
if (addends.size > 2) {
|
||||||
|
Loading…
Reference in New Issue
Block a user