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

Commit 6a5320c

Browse files
perostOpenModelica-Hudson
authored andcommitted
Fix Inst.releaseInstHashTable.
- Create a new hash table of appropriate size, instead of one with size 1, since it will be reused by subsequent instantiations. Belonging to [master]: - #2405
1 parent 26cb184 commit 6a5320c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/FrontEnd/Inst.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5513,7 +5513,7 @@ end initInstHashTable;
55135513

55145514
public function releaseInstHashTable
55155515
algorithm
5516-
setGlobalRoot(Global.instHashIndex, emptyInstHashTableSized(1));
5516+
setGlobalRoot(Global.instHashIndex, emptyInstHashTable());
55175517
OperatorOverloading.initCache();
55185518
end releaseInstHashTable;
55195519

0 commit comments

Comments
 (0)