Skip to content

Commit d686feb

Browse files
author
Peter Aronsson
committed
Fixed bug in simplify of cos(0) * cos(0) (MC bug 654)
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2453 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent baaa784 commit d686feb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Compiler/Exp.mo

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1998,9 +1998,8 @@ algorithm
19981998
case (((e,r) :: xs))
19991999
equation
20002000
res = simplifyMulMakePow(xs);
2001-
tp = typeof(e);
20022001
then
2003-
(BINARY(e,POW(tp),RCONST(r)) :: res);
2002+
(BINARY(e,POW(REAL()),RCONST(r)) :: res);
20042003
end matchcontinue;
20052004
end simplifyMulMakePow;
20062005

0 commit comments

Comments
 (0)