1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Fixed method selection when we have append args

This commit is contained in:
Brian Fiete 2020-01-15 08:31:34 -08:00
parent 9d1b85cceb
commit 39b7309dd5
7 changed files with 19 additions and 9 deletions

View file

@ -102,7 +102,7 @@ namespace System
[AllowAppend]
public this(String str, int offset)
{
Debug.Assert(offset <= str.Length);
Debug.Assert((uint)offset <= (uint)str.Length);
let count = str.mLength - offset;
int bufferSize = (count == 0) ? 0 : (count - 1) & ~(sizeof(char8*) - 1);
#unwarn