Fix insensitive compare not working properly with strings of different length

This commit is contained in:
elasota
2021-03-08 19:07:31 -05:00
parent 6931b3f505
commit 6292705968

View File

@@ -47,7 +47,7 @@ namespace StrCmp
const uint8_t *chars2 = string2.UChars();
const size_t len1 = string1.Length();
const size_t len2 = string1.Length();
const size_t len2 = string2.Length();
const size_t shorterLen = std::min(len1, len2);