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:
parent
96c0a44a7e
commit
84b2f22846
4 changed files with 5 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue