Fix Windows compile error from last commit.

This commit is contained in:
Stephen Anthony 2024-08-01 12:36:36 -02:30
parent c48f03b2a1
commit e31371faae
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ namespace BSPF
// starting from 'startpos' in the first string
static size_t findIgnoreCase(string_view s1, string_view s2, size_t startpos = 0)
{
const auto *const pos = std::search(s1.cbegin()+startpos, s1.cend(),
const auto pos = std::search(s1.cbegin()+startpos, s1.cend(),
s2.cbegin(), s2.cend(), [](char ch1, char ch2) {
return toupper(static_cast<uInt8>(ch1)) == toupper(static_cast<uInt8>(ch2));
});