Skip to content

Commit

Permalink
- RML fix.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22842 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Oct 21, 2014
1 parent 1ad1ef9 commit dac2735
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Compiler/Script/GlobalScriptUtil.mo
Expand Up @@ -316,10 +316,12 @@ algorithm
String id;
Values.Value v;
DAE.Type tp;
DAE.ComponentRef cref;

case (GlobalScript.IVAR(varIdent = id, value = v, type_ = tp), env)
equation
(_,_,_,_,_,_,_,_,_) = Lookup.lookupVar(FCore.emptyCache(), env, ComponentReference.makeCrefIdent(id,DAE.T_UNKNOWN_DEFAULT,{}));
cref = ComponentReference.makeCrefIdent(id, DAE.T_UNKNOWN_DEFAULT, {});
(_,_,_,_,_,_,_,_,_) = Lookup.lookupVar(FCore.emptyCache(), env, cref);
env = FGraph.updateComp(
env,
DAE.TYPES_VAR(
Expand Down

0 comments on commit dac2735

Please sign in to comment.