Skip to content

Commit

Permalink
- Use System.intMaxLit instead of integerMax since it has a better de…
Browse files Browse the repository at this point in the history
…finition

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14307 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Dec 10, 2012
1 parent 2a9efac commit cf4c4aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/Ceval.mo
Original file line number Diff line number Diff line change
Expand Up @@ -2678,7 +2678,7 @@ algorithm
Integer i;
case (_,_,{},_,_,_)
equation
i = System.integerMax();
i = System.intMaxLit();
then
(inCache,Values.INTEGER(i),inST);
end match;
Expand Down
5 changes: 0 additions & 5 deletions Compiler/Util/System.mo
Original file line number Diff line number Diff line change
Expand Up @@ -984,9 +984,4 @@ public function numBits
external "C" n=architecture_numbits() annotation(Include="#define architecture_numbits() (8*sizeof(void*))");
end numBits;

public function integerMax
output Integer n;
external "C" n=architecture_intmax() annotation(Include="#define architecture_intmax() ((1L << (8*sizeof(void*)-2))-1)");
end integerMax;

end System;

0 comments on commit cf4c4aa

Please sign in to comment.