From 4411196ecc034c7a564b74182891095deeae75d2 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 20 May 2000 23:26:43 +0000 Subject: Fixed scope of variable. --- src/LexVB.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/LexVB.cxx') diff --git a/src/LexVB.cxx b/src/LexVB.cxx index cdda470b5..b5b3bf9ab 100644 --- a/src/LexVB.cxx +++ b/src/LexVB.cxx @@ -26,7 +26,8 @@ static int classifyWordVB(unsigned int start, unsigned int end, WordList &keywor bool wordIsNumber = isdigit(styler[start]) || (styler[start] == '.') || (styler[start] == '&' && tolower(styler[start+1]) == 'h'); #endif /* OLD PL 2000/05/18 */ - for (unsigned int i = 0; i < end - start + 1 && i < 30; i++) { + unsigned int i; + for (i = 0; i < end - start + 1 && i < 30; i++) { s[i] = static_cast(tolower(styler[start + i])); #ifdef OLD /* PL 2000/05/18 -- Little optimization */ s[i + 1] = '\0'; -- cgit v1.2.3