diff options
author | Neil <nyamatongwe@gmail.com> | 2016-03-26 09:59:41 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2016-03-26 09:59:41 +1100 |
commit | db89e8a5c51b6d3e0e496c86141c48bf77373786 (patch) | |
tree | c06feb7a704c88825c8c120cbec30b72efac3511 /src | |
parent | 5fb6f88108fdade234c232257f006a404cd2306a (diff) | |
download | scintilla-mirror-db89e8a5c51b6d3e0e496c86141c48bf77373786.tar.gz |
Fix truncation warning in 64-bit build.
Diffstat (limited to 'src')
-rw-r--r-- | src/Document.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 0c6866409..5e58f26ee 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -2617,9 +2617,9 @@ bool MatchOnLines(const Document *doc, const Regex ®exp, const RESearchRange for (size_t co = 0; co < match.size(); co++) { search.bopat[co] = match[co].first.Pos(); search.eopat[co] = match[co].second.PosRoundUp(); - size_t lenMatch = search.eopat[co] - search.bopat[co]; + Sci::Position lenMatch = search.eopat[co] - search.bopat[co]; search.pat[co].resize(lenMatch); - for (size_t iPos = 0; iPos < lenMatch; iPos++) { + for (Sci::Position iPos = 0; iPos < lenMatch; iPos++) { search.pat[co][iPos] = doc->CharAt(iPos + search.bopat[co]); } } |