From: Jean-Marc Lasgouttes Date: Sat, 24 Nov 2018 18:17:31 +0000 (+0100) Subject: Fix compilation with msvc 2015 X-Git-Tag: lyx-2.4.0dev-acb2ca7b~2900 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e2a3dd1167b6e3350245500fa7cadcc356e59b8e;p=features.git Fix compilation with msvc 2015 Without this, the compiler does not know whether 0 is a size_t or char const *. --- diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 63a3a446cc..c1f9b5ab28 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -2406,7 +2406,7 @@ int MatchStringAdv::findAux(DocIterator const & cur, int len, bool at_begin) con else result = m[m.size() - close_wildcards].first - m[0].first; - size_t pos = m.position(0); + size_t pos = m.position(size_t(0)); // Ignore last closing characters while (result > 0) { if (str[pos+result-1] == '}')