Skip to content

Commit

Permalink
- Fixed RML compilation.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21058 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Jun 11, 2014
1 parent 439f766 commit 8ccd338
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Compiler/FrontEnd/Lookup.mo
Expand Up @@ -2978,6 +2978,7 @@ algorithm
Option<Boolean> res;
Option<DAE.Const> ic;
Env.Frame frame;
Boolean b;

// Look in the current scope.
case (cache, Env.FRAME(clsAndVars = scope) :: _, _)
Expand All @@ -2987,8 +2988,9 @@ algorithm
id = ComponentReference.crefFirstIdent(inCref);
(cache, DAE.TYPES_VAR(constOfForIteratorRange = ic), _, _, _, _) =
lookupVar2(cache, scope, id);
b = Util.isSome(ic);
then
(SOME(Util.isSome(ic)), cache);
(SOME(b), cache);

// If not found, look in the next scope only if the current scope is implicit.
case (cache, frame :: env, _)
Expand Down

0 comments on commit 8ccd338

Please sign in to comment.