Skip to content

Commit

Permalink
-Fixed bug in ceval of false == true, introduced in -r 5993
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@6093 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Peter Aronsson committed Sep 13, 2010
1 parent f2e35c7 commit 7fa4d43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Compiler/Ceval.mo
Expand Up @@ -4528,6 +4528,8 @@ algorithm
then true;
case (Values.BOOL(boolean = true), Values.BOOL(boolean = true))
then true;
case (Values.BOOL(boolean = _), Values.BOOL(boolean = _))
then false;
case (Values.ENUM_LITERAL(index = i1), Values.ENUM_LITERAL(index = i2))
then (i1 == i2);
case (Values.ENUM_LITERAL(index = i1), Values.INTEGER(integer = i2))
Expand Down

0 comments on commit 7fa4d43

Please sign in to comment.