Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit cccd62d

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
Fix typo
list<integer> is a list of function pointers. Belonging to [master]: - #2283 - OpenModelica/OpenModelica-testsuite#878
1 parent e89be00 commit cccd62d

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Compiler/SimCode/ReduceDAE.mo

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2233,20 +2233,20 @@ protected function StringDelimit2Int
22332233
" splits the input string at the delimiter string in list of strings and converts to integer list"
22342234
input String inString;
22352235
input String inDelim;
2236-
output list<integer> outList;
2237-
algorithm outList:=matchcontinue(inString,inDelim)
2238-
local
2239-
list<String> lst;
2240-
list<Integer> lst2;
2241-
String v,delim;
2242-
case (v,delim)
2243-
equation
2244-
lst=Util.stringSplitAtChar(v,delim);
2245-
lst2=List.map(lst,stringInt);
2236+
output list<Integer> outList;
2237+
algorithm
2238+
outList := matchcontinue (inString,inDelim)
2239+
local
2240+
list<String> lst;
2241+
list<Integer> lst2;
2242+
String v,delim;
2243+
case (v,delim)
2244+
equation
2245+
lst=Util.stringSplitAtChar(v,delim);
2246+
lst2=list(stringInt(s) for s in lst);
22462247
then lst2;
2247-
case(_,delim)
2248-
then {};
2249-
end matchcontinue;
2248+
else {};
2249+
end matchcontinue;
22502250
end StringDelimit2Int;
22512251

22522252
public function createBackendLabelVars

0 commit comments

Comments
 (0)