diff options
author | Zufu Liu <unknown> | 2019-01-06 12:06:48 +1100 |
---|---|---|
committer | Zufu Liu <unknown> | 2019-01-06 12:06:48 +1100 |
commit | 24b2acfddea20bbcdb6c714dcdc96389ab4f54b5 (patch) | |
tree | 1a438cf0677801a264f5d6047118b001286b0d89 /src/Editor.cxx | |
parent | b7937365db8e0a049155fda1b31d2c3ff5321547 (diff) | |
download | scintilla-mirror-24b2acfddea20bbcdb6c714dcdc96389ab4f54b5.tar.gz |
Backport: Bug [#2068]. Fix some clang-tidy warnings.
Backport of changeset 7195:ce4394f12c76.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index b176c0465..045266604 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5775,7 +5775,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { if (wParam == 0) return 0; char *ptr = CharPtrFromSPtr(lParam); - unsigned int iChar = 0; + size_t iChar = 0; for (; iChar < wParam - 1; iChar++) ptr[iChar] = pdoc->CharAt(iChar); ptr[iChar] = '\0'; @@ -5909,7 +5909,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { return selectedText.LengthWithTerminator(); } else { char *ptr = CharPtrFromSPtr(lParam); - unsigned int iChar = 0; + size_t iChar = 0; if (selectedText.Length()) { for (; iChar < selectedText.LengthWithTerminator(); iChar++) ptr[iChar] = selectedText.Data()[iChar]; |