From 24b2acfddea20bbcdb6c714dcdc96389ab4f54b5 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Sun, 6 Jan 2019 12:06:48 +1100 Subject: Backport: Bug [#2068]. Fix some clang-tidy warnings. Backport of changeset 7195:ce4394f12c76. --- src/Document.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Document.cxx') diff --git a/src/Document.cxx b/src/Document.cxx index ad0ec80e7..53c5280db 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -3193,7 +3193,7 @@ const char *BuiltinRegex::SubstituteByPosition(Document *doc, const char *text, substituted.clear(); const DocumentIndexer di(doc, doc->Length()); search.GrabMatches(di); - for (int j = 0; j < *length; j++) { + for (Sci::Position j = 0; j < *length; j++) { if (text[j] == '\\') { if (text[j + 1] >= '0' && text[j + 1] <= '9') { const unsigned int patNum = text[j + 1] - '0'; -- cgit v1.2.3