Skip to content

Commit

Permalink
changed the return value for the val function from boolean to real.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2801 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
x06klasj committed May 23, 2007
1 parent 6c21a39 commit a8adeac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/Static.mo
Expand Up @@ -5054,7 +5054,7 @@ algorithm
vars_1 = listAppend(vars_1, {cd1});
then
(cache,Exp.CALL(Absyn.IDENT("val"),{Exp.ARRAY(Exp.OTHER(),false,vars_1)},
false,true,Exp.REAL()),Types.PROP((Types.T_BOOL({}),NONE),Types.C_VAR()),SOME(st));
false,true,Exp.REAL()),Types.PROP((Types.T_REAL({}),NONE),Types.C_VAR()),SOME(st));

case (cache,env,Absyn.CREF_IDENT(name = "val"),{(cr as Absyn.CREF(componentReg = _)),(cd as Absyn.INTEGER(value = _))},{},impl,SOME(st))
local
Expand All @@ -5066,7 +5066,7 @@ algorithm
vars_1 = listAppend(vars_1, {cd1});
then
(cache,Exp.CALL(Absyn.IDENT("val"),{Exp.ARRAY(Exp.OTHER(),false,vars_1)},
false,true,Exp.REAL()),Types.PROP((Types.T_BOOL({}),NONE),Types.C_VAR()),SOME(st));
false,true,Exp.REAL()),Types.PROP((Types.T_REAL({}),NONE),Types.C_VAR()),SOME(st));

case (cache,env,Absyn.CREF_IDENT(name = "plotParametric"),vars,{},impl,SOME(st)) /* PlotParametric is similar to plot but does not allow a single CREF as an
argument as you are plotting at least one variable as a function of another.
Expand Down

0 comments on commit a8adeac

Please sign in to comment.