Skip to content

Commit

Permalink
dotnet: fix writeable's grow implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
CBenoit committed Jan 25, 2022
1 parent f531c17 commit f7a5f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/src/dotnet/Runtime.cs
Expand Up @@ -89,7 +89,7 @@ private unsafe static bool Grow(IntPtr writeable, nuint capacity)
}
DiplomatWriteable* self = (DiplomatWriteable*)writeable;

nuint newCap = self->cap * 2;
nuint newCap = capacity;
if (newCap > int.MaxValue)
{
return false;
Expand Down

0 comments on commit f7a5f59

Please sign in to comment.