mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
Fix compilation with msvc 2015
Without this, the compiler does not know whether 0 is a size_t or char const *.
This commit is contained in:
parent
57feb0fed0
commit
e2a3dd1167
@ -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] == '}')
|
||||
|
Loading…
Reference in New Issue
Block a user