]> git.lyx.org Git - lyx.git/commitdiff
Fix compilation with msvc 2015
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 24 Nov 2018 18:17:31 +0000 (19:17 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 24 Nov 2018 18:17:31 +0000 (19:17 +0100)
Without this, the compiler does not know whether 0 is a size_t or char
const *.

src/lyxfind.cpp

index 63a3a446cce027b6c84c7c5962776f2155774dbe..c1f9b5ab28b72cbba7d81610c05825d98fa2642d 100644 (file)
@@ -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] == '}')