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

Fix for string Length-setting (trim-only) assert

This commit is contained in:
Brian Fiete 2021-09-06 07:17:33 -07:00
parent 0e609637de
commit 88c4b2a818
2 changed files with 2 additions and 2 deletions

View file

@ -2675,7 +2675,7 @@ namespace System
return;
int i = sb.Length + (end - start);
sb.Length = i;
sb.PrepareBuffer(i);
var end;
var start;

View file

@ -329,7 +329,7 @@ namespace System
set
{
Debug.Assert((uint)mLength <= (uint)value);
Debug.Assert((uint)value <= (uint)mLength);
mLength = (int_strsize)value;
}
}