Skip to content

Commit

Permalink
- Fix compilation.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11480 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Mar 21, 2012
1 parent ae31ec6 commit 920611f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/FrontEnd/SCodeInst.mo
Expand Up @@ -1289,15 +1289,15 @@ algorithm
equation
(_, _, env, origin) = SCodeLookup.lookupNameInPackage(inCrefPath, inEnv);
is_global = SCodeLookup.originIsGlobal(origin);
cref = instLocalCref(inCref, inPrefix, inEnv, env, is_global);
cref = prefixLocalCref(inCref, inPrefix, inEnv, env, is_global);
then
cref;

// Otherwise, look it up in the scopes above, and call instGlobalCref.
case (_, _, _, _ :: env)
equation
(_, _, env, _) = SCodeLookup.lookupName(inCrefPath, env, Absyn.dummyInfo, NONE());
cref = instGlobalCref(inCref, inPrefix, inEnv, env);
cref = prefixGlobalCref(inCref, inPrefix, inEnv, env);
then
cref;

Expand Down

0 comments on commit 920611f

Please sign in to comment.