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

Merge pull request #222 from mundusnine/master

Update String.bf to replace all occurrences of char even as lastChar
This commit is contained in:
Brian Fiete 2020-05-06 04:38:46 -07:00 committed by GitHub
commit 1eb63173d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1937,7 +1937,7 @@ namespace System
{
// Optimized version for single-character replacements
char8 findC = find[0];
while (inIdx < mLength - find.mLength)
while (inIdx < mLength)
{
if (ptr[inIdx] == findC)
{