Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 33aa19d

Browse files
adrpoOpenModelica-Hudson
authored andcommitted
use LONG_MAX for integer in FMU min/max
Belonging to [master]: - #2640
1 parent eefcdcc commit 33aa19d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Compiler/Template/CodegenFMU.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3130,8 +3130,8 @@ template ScalarVariableTypeFMU(String attrstr, String unit, String displayUnit,
31303130
match type_
31313131
case T_INTEGER(__) then
31323132
<<
3133-
<%attrstr%>.min = <%optInitValFMU(minValue,"-DBL_MAX")%>;
3134-
<%attrstr%>.max = <%optInitValFMU(maxValue,"DBL_MAX")%>;
3133+
<%attrstr%>.min = <%optInitValFMU(minValue,"-LONG_MAX")%>;
3134+
<%attrstr%>.max = <%optInitValFMU(maxValue,"LONG_MAX")%>;
31353135
<%attrstr%>.fixed = <%if isFixed then 1 else 0%>;
31363136
<%attrstr%>.start = <%optInitValFMU(startValue,"0")%>;
31373137
>>

0 commit comments

Comments
 (0)