aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorZufu Liu <unknown>2019-01-06 12:06:48 +1100
committerZufu Liu <unknown>2019-01-06 12:06:48 +1100
commit5476eada003a1fbc182676c625b767efb2c16e6f (patch)
treeaa2d89bf5f61cb359c8ff4a5b2dd14968965e50c /src/Editor.cxx
parent2e794b1ef52cb04e93f65906a266095bc8eae4f6 (diff)
downloadscintilla-mirror-5476eada003a1fbc182676c625b767efb2c16e6f.tar.gz
Bug [#2068]. Fix some clang-tidy warnings.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 8a8bae6cc..671e8a3b0 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5779,7 +5779,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';
@@ -5913,7 +5913,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];