From d4423d40f823b388f2e9f4c2978d025959db3b76 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Thu, 1 Aug 2024 12:36:36 -0230 Subject: [PATCH] Fix Windows compile error from last commit. --- src/common/bspf.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/bspf.hxx b/src/common/bspf.hxx index 8a4217fdd..bda8c559d 100644 --- a/src/common/bspf.hxx +++ b/src/common/bspf.hxx @@ -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(ch1)) == toupper(static_cast(ch2)); });