Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
list<integer> is a list of function pointers.

Belonging to [master]:
  - OpenModelica/OMCompiler#2283
  - OpenModelica/OpenModelica-testsuite#878
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Mar 16, 2018
1 parent e89be00 commit cccd62d
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Compiler/SimCode/ReduceDAE.mo
Expand Up @@ -2233,20 +2233,20 @@ protected function StringDelimit2Int
" splits the input string at the delimiter string in list of strings and converts to integer list"
input String inString;
input String inDelim;
output list<integer> outList;
algorithm outList:=matchcontinue(inString,inDelim)
local
list<String> lst;
list<Integer> lst2;
String v,delim;
case (v,delim)
equation
lst=Util.stringSplitAtChar(v,delim);
lst2=List.map(lst,stringInt);
output list<Integer> outList;
algorithm
outList := matchcontinue (inString,inDelim)
local
list<String> lst;
list<Integer> lst2;
String v,delim;
case (v,delim)
equation
lst=Util.stringSplitAtChar(v,delim);
lst2=list(stringInt(s) for s in lst);
then lst2;
case(_,delim)
then {};
end matchcontinue;
else {};
end matchcontinue;
end StringDelimit2Int;

public function createBackendLabelVars
Expand Down

0 comments on commit cccd62d

Please sign in to comment.