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

Commit 91cd77d

Browse files
rfrankeOpenModelica-Hudson
authored andcommitted
Fix type of firstTick operator
Belonging to [master]: - #2502
1 parent 6533bcd commit 91cd77d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Compiler/FrontEnd/Static.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5033,7 +5033,7 @@ algorithm
50335033
equation
50345034
ty = DAE.T_FUNCTION(
50355035
{},
5036-
DAE.T_REAL_DEFAULT,
5036+
DAE.T_BOOL_DEFAULT,
50375037
DAE.FUNCTION_ATTRIBUTES_BUILTIN_IMPURE,
50385038
Absyn.IDENT("firstTick"));
50395039
(cache,SOME((call,prop))) = elabCallArgs3(cache, env, {ty}, Absyn.IDENT("firstTick"), args, nargs, impl, pre, info);
@@ -5045,7 +5045,7 @@ algorithm
50455045
ty1 = Types.arrayElementType(Types.getPropType(prop1));
50465046
ty = DAE.T_FUNCTION(
50475047
{DAE.FUNCARG("u",ty1,DAE.C_VAR(),DAE.NON_PARALLEL(),NONE())},
5048-
DAE.T_REAL_DEFAULT,
5048+
DAE.T_BOOL_DEFAULT,
50495049
DAE.FUNCTION_ATTRIBUTES_BUILTIN_IMPURE,
50505050
Absyn.IDENT("firstTick"));
50515051
(cache,SOME((call,prop))) = elabCallArgs3(cache, env, {ty}, Absyn.IDENT("firstTick"), args, nargs, impl, pre, info);

0 commit comments

Comments
 (0)