From 466a3e482ff0798c6fef7637ccf596750c48bcc4 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 18 Aug 2010 10:19:13 +1000 Subject: Fixed error with old compiler's incorrect view of scope. --- lexers/LexPowerPro.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexers') diff --git a/lexers/LexPowerPro.cxx b/lexers/LexPowerPro.cxx index cb5773501..89bce5800 100644 --- a/lexers/LexPowerPro.cxx +++ b/lexers/LexPowerPro.cxx @@ -114,7 +114,7 @@ static bool IsFunction(Accessor &styler, unsigned int currentPos) { //make sure that there are only spaces (or tabs) between the beginning //of the line and the function declaration position = currentPos - numberOfCharacters - 1; //-1 to move to char before 'function' - for (unsigned int i = 0; i < 16; i++) { //check up to 16 preceeding characters + for (unsigned int j = 0; j < 16; j++) { //check up to 16 preceeding characters char c = styler.SafeGetCharAt(position--, '\0'); //if can't read char, return NUL (past beginning of document) if (c <= 0) //reached beginning of document return true; -- cgit v1.2.3