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

Commit 158a345

Browse files
perostOpenModelica-Hudson
authored andcommitted
[NF] Fix TypeCheck.getRangeTypeReal.
Belonging to [master]: - #2875
1 parent c0d2c57 commit 158a345

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Compiler/NFFrontEnd/NFTypeCheck.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2738,7 +2738,7 @@ algorithm
27382738
if isSome(stepExp) then
27392739
SOME(step_exp) := stepExp;
27402740
var := Prefixes.variabilityMax(var, Expression.variability(step_exp));
2741-
dim_exp := Expression.BINARY(dim_exp, Operator.makeDiv(Type.REAL()), startExp);
2741+
dim_exp := Expression.BINARY(dim_exp, Operator.makeDiv(Type.REAL()), step_exp);
27422742
dim_exp := Expression.BINARY(dim_exp, Operator.makeAdd(Type.REAL()), Expression.REAL(5e-15));
27432743
end if;
27442744

0 commit comments

Comments
 (0)