From e4499d7a228dd5c0c7c77407b69cdff777b51415 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Wed, 26 Nov 2014 22:16:53 +0000 Subject: [PATCH] [BUG_FIXED] Fix an infinite loop due to smart indent. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1297 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/Notepad_plus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)