Skip to content

Commit

Permalink
Fix simplify {a,b,c}*0.0{0.0,0.0,0.0} instead of 0.0
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22710 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Oct 10, 2014
1 parent 20601e0 commit 914b9fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/ExpressionSimplify.mo
Expand Up @@ -1872,7 +1872,7 @@ algorithm
case (_,DAE.MUL_ARRAY_SCALAR(ty = tp),e2)
equation
true = Expression.isZero(e2);
a1 = Expression.makeConstZero(tp);
(a1, _) = Expression.makeZeroExpression(Expression.arrayDimension(tp));
then a1;

case (e1,DAE.DIV_ARR(ty = _),_)
Expand Down

0 comments on commit 914b9fb

Please sign in to comment.