Skip to content

Commit

Permalink
Do not create HT of size 0
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed May 25, 2016
1 parent 689ff40 commit f47e48b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -10952,7 +10952,7 @@ algorithm

// get states and create hash table
SimCode.MODELINFO(varInfo=varInfo,vars=allVars) = modelInfo;
htStates = List.fold(allVars.stateVars, addSimVarToHashTable, HashTableCrefSimVar.emptyHashTableSized(size));
htStates = List.fold(allVars.stateVars, addSimVarToHashTable, HashTableCrefSimVar.emptyHashTableSized(1+integer(1.4*size)));

// produce mapping
simVarIdcs = List.map2(simVars,getSimVarIndex,varInfo,htStates);
Expand Down

0 comments on commit f47e48b

Please sign in to comment.