Skip to content

Commit

Permalink
Fix type of firstTick operator
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2502
  • Loading branch information
rfranke authored and OpenModelica-Hudson committed Jun 11, 2018
1 parent 6533bcd commit 91cd77d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/FrontEnd/Static.mo
Expand Up @@ -5033,7 +5033,7 @@ algorithm
equation
ty = DAE.T_FUNCTION(
{},
DAE.T_REAL_DEFAULT,
DAE.T_BOOL_DEFAULT,
DAE.FUNCTION_ATTRIBUTES_BUILTIN_IMPURE,
Absyn.IDENT("firstTick"));
(cache,SOME((call,prop))) = elabCallArgs3(cache, env, {ty}, Absyn.IDENT("firstTick"), args, nargs, impl, pre, info);
Expand All @@ -5045,7 +5045,7 @@ algorithm
ty1 = Types.arrayElementType(Types.getPropType(prop1));
ty = DAE.T_FUNCTION(
{DAE.FUNCARG("u",ty1,DAE.C_VAR(),DAE.NON_PARALLEL(),NONE())},
DAE.T_REAL_DEFAULT,
DAE.T_BOOL_DEFAULT,
DAE.FUNCTION_ATTRIBUTES_BUILTIN_IMPURE,
Absyn.IDENT("firstTick"));
(cache,SOME((call,prop))) = elabCallArgs3(cache, env, {ty}, Absyn.IDENT("firstTick"), args, nargs, impl, pre, info);
Expand Down

0 comments on commit 91cd77d

Please sign in to comment.