Fix x86 build error

This commit is contained in:
Don HO 2016-07-03 20:46:58 +02:00
parent 2b87e3a850
commit 15d4dd16e7

View File

@ -2531,9 +2531,9 @@ void Notepad_plus::maintainIndentation(TCHAR ch)
{ {
// if no character in front of {, aligned with prev line's indentation // if no character in front of {, aligned with prev line's indentation
auto startPos = _pEditView->execute(SCI_POSITIONFROMLINE, curLine); 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); UCHAR aChar = (UCHAR)_pEditView->execute(SCI_GETCHARAT, i);
if (aChar != ' ' && aChar != '\t') if (aChar != ' ' && aChar != '\t')