Skip to content

Commit

Permalink
- Fixed getNthImport.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11718 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Apr 11, 2012
1 parent 09edc2e commit a7e47ba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Compiler/Script/CevalScript.mo
Expand Up @@ -6218,12 +6218,17 @@ algorithm
vals = unparseNthImport(import_);
then
vals;
case ((_ :: els),n)
case ((Absyn.ELEMENTITEM(element = Absyn.ELEMENT(specification = Absyn.IMPORT(import_ = import_))) :: els), n)
equation
newn = n - 1;
vals = getNthImportInElementItems(els, newn);
then
vals;
case ((_ :: els),n)
equation
vals = getNthImportInElementItems(els, n);
then
vals;
case ({},_) then fail();
end matchcontinue;
end getNthImportInElementItems;
Expand Down

0 comments on commit a7e47ba

Please sign in to comment.