Skip to content

Commit

Permalink
Fix array resize bug (asynkron#1908)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiuszwojcik committed Jan 22, 2023
1 parent 3a998bc commit 24ed0fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Proto.Actor/Utils/TypedDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void Add<TKey>(TValue value)

if (id >= _values.Length)
{
Array.Resize(ref _values, (int)(id * _growthFactor));
Array.Resize(ref _values, (int)((id + 1) * _growthFactor));
}

_values[id] = value;
Expand Down

0 comments on commit 24ed0fc

Please sign in to comment.