1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-01 13:56:00 +02:00

Avoid recalc of string length in integer ToString

This commit is contained in:
ESH 2025-01-13 20:17:04 +01:00
parent 96c0a44a7e
commit 84b2f22846
4 changed files with 5 additions and 7 deletions

View file

@ -86,7 +86,7 @@ namespace System
if (isNeg)
strChars[char8Idx--] = '-';
char8* char8Ptr = &strChars[char8Idx + 1];
strBuffer.Append(char8Ptr);
strBuffer.Append(char8Ptr, 14 - char8Idx);
}
void ToString(String strBuffer, int minNumerals)