diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 28b41d18..024518c8 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -2302,7 +2302,7 @@ int Notepad_plus::findMachedBracePos(size_t startPos, size_t endPos, char target if (startPos > endPos) // backward { - for (size_t i = startPos; i >= endPos; --i) + for (int i = startPos; i >= int(endPos); --i) { char aChar = (char)_pEditView->execute(SCI_GETCHARAT, i); if (aChar == targetSymbol)