Skip to content

Commit

Permalink
- BaseHashTable.valueArrayList2: add case for empty last element from…
Browse files Browse the repository at this point in the history
… hashtable

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9444 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Jul 8, 2011
1 parent af1d964 commit ba26c9e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Compiler/Util/BaseHashTable.mo
Expand Up @@ -525,6 +525,14 @@ algorithm
acc = listReverse(v::acc);
then
acc;

case (arr,pos,lastpos,acc)
equation
(pos == lastpos) = true;
NONE() = arr[pos + 1];
acc = listReverse(acc);
then
acc;

case (arr,pos,lastpos,acc)
equation
Expand Down

0 comments on commit ba26c9e

Please sign in to comment.