1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-21 09:27:59 +02:00

Fixed invalid ptr in String.Equal(StringView)

This commit is contained in:
Brian Fiete 2022-06-11 05:47:22 -07:00
parent ae84564fca
commit 931e29a1f3

View file

@ -2067,8 +2067,8 @@ namespace System
if (mLength != str.[Friend]mLength)
return false;
if (comparisonType == StringComparison.OrdinalIgnoreCase)
return EqualsIgnoreCaseHelper(str.Ptr, mPtr, mLength);
return EqualsHelper(str.Ptr, mPtr, mLength);
return EqualsIgnoreCaseHelper(str.Ptr, Ptr, mLength);
return EqualsHelper(str.Ptr, Ptr, mLength);
}
public bool StartsWith(StringView b, StringComparison comparisonType = StringComparison.Ordinal)