Skip to content

Commit cf4c4aa

Browse files
committed
- Use System.intMaxLit instead of integerMax since it has a better definition
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14307 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 2a9efac commit cf4c4aa

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Compiler/FrontEnd/Ceval.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2678,7 +2678,7 @@ algorithm
26782678
Integer i;
26792679
case (_,_,{},_,_,_)
26802680
equation
2681-
i = System.integerMax();
2681+
i = System.intMaxLit();
26822682
then
26832683
(inCache,Values.INTEGER(i),inST);
26842684
end match;

Compiler/Util/System.mo

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -984,9 +984,4 @@ public function numBits
984984
external "C" n=architecture_numbits() annotation(Include="#define architecture_numbits() (8*sizeof(void*))");
985985
end numBits;
986986

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

0 commit comments

Comments
 (0)