diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 4c615840f..d21ffd128 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -2531,9 +2531,9 @@ void Notepad_plus::maintainIndentation(TCHAR ch) { // if no character in front of {, aligned with prev line's indentation auto startPos = _pEditView->execute(SCI_POSITIONFROMLINE, curLine); - auto endPos = _pEditView->execute(SCI_GETCURRENTPOS); + LRESULT endPos = _pEditView->execute(SCI_GETCURRENTPOS); - for (long long i = endPos - 2; i > 0 && i > startPos; --i) + for (LRESULT i = endPos - 2; i > 0 && i > startPos; --i) { UCHAR aChar = (UCHAR)_pEditView->execute(SCI_GETCHARAT, i); if (aChar != ' ' && aChar != '\t')