Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit cf5c9a7

Browse files
perostOpenModelica-Hudson
authored andcommitted
[NF] Fix type of unary operators.
Belonging to [master]: - #2194
1 parent 5cf076a commit cf5c9a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/NFFrontEnd/NFTypeCheck.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ algorithm
489489

490490
unaryExp := match operator.op
491491
case Op.ADD then exp1; // + is a no-op for arithmetic unary operations.
492-
else Expression.UNARY(operator, exp1);
492+
else Expression.UNARY(op, exp1);
493493
end match;
494494

495495
if not Type.isNumeric(type1) then

0 commit comments

Comments
 (0)