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

Commit

Permalink
[NF] Fix TypeCheck.getRangeTypeReal.
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - #2875
  • Loading branch information
perost authored and OpenModelica-Hudson committed Jan 15, 2019
1 parent c0d2c57 commit 158a345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/NFFrontEnd/NFTypeCheck.mo
Expand Up @@ -2738,7 +2738,7 @@ algorithm
if isSome(stepExp) then
SOME(step_exp) := stepExp;
var := Prefixes.variabilityMax(var, Expression.variability(step_exp));
dim_exp := Expression.BINARY(dim_exp, Operator.makeDiv(Type.REAL()), startExp);
dim_exp := Expression.BINARY(dim_exp, Operator.makeDiv(Type.REAL()), step_exp);
dim_exp := Expression.BINARY(dim_exp, Operator.makeAdd(Type.REAL()), Expression.REAL(5e-15));
end if;

Expand Down

0 comments on commit 158a345

Please sign in to comment.