From 9ca1bf64623bd442bb0dbadcdd43b4f4f3e494c0 Mon Sep 17 00:00:00 2001 From: phannebohm Date: Fri, 11 Aug 2023 16:06:44 +0200 Subject: [PATCH] Fix typo in expression sign check (#11040) --- OMCompiler/Compiler/NFFrontEnd/NFExpression.mo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OMCompiler/Compiler/NFFrontEnd/NFExpression.mo b/OMCompiler/Compiler/NFFrontEnd/NFExpression.mo index c6ca15addd8..5faa6e101cb 100644 --- a/OMCompiler/Compiler/NFFrontEnd/NFExpression.mo +++ b/OMCompiler/Compiler/NFFrontEnd/NFExpression.mo @@ -4375,8 +4375,8 @@ public res := match exp case INTEGER() then exp.value >= 0; case REAL() then exp.value >= 0; - case CAST() then isNonPositive(exp.exp); - case UNARY() then isNonNegative(exp.exp); + case CAST() then isNonNegative(exp.exp); + case UNARY() then isNonPositive(exp.exp); else false; end match; end isNonNegative;