Skip to content

Commit 21c4acd

Browse files
author
Leonardo Laguna
committed
- Fixed small bug in setPos function.
- Changed the scope of map1r to public git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11755 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 45597ea commit 21c4acd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Compiler/Util/List.mo

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,7 @@ protected import Flags;
101101
protected import Error;
102102
protected import Util;
103103

104-
public
105-
106-
// Input types:
107-
replaceable type ValueType subtypeof Any;
104+
public replaceable type ValueType subtypeof Any;
108105

109106
replaceable type ElementType subtypeof Any;
110107
replaceable type ElementType1 subtypeof Any;
@@ -1574,7 +1571,7 @@ algorithm
15741571
case(i :: irest, _, _)
15751572
equation
15761573
arr = arrayUpdate(inArray, i, inIndex);
1577-
arr = setPos(inList, inArray, inIndex);
1574+
arr = setPos(irest, inArray, inIndex);
15781575
then
15791576
arr;
15801577

@@ -2318,7 +2315,7 @@ algorithm
23182315
outList := listReverse(map1r_tail(inList, inFunc, inArg1, {}));
23192316
end map1r;
23202317

2321-
protected function map1r_tail
2318+
public function map1r_tail
23222319
"Tail-recursive implementation of map1r"
23232320
input list<ElementInType> inList;
23242321
input MapFunc inFunc;

0 commit comments

Comments
 (0)