diff options
| author | nyamatongwe <devnull@localhost> | 2000-05-20 23:26:43 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2000-05-20 23:26:43 +0000 | 
| commit | ebe3ffb62b60ed9684dbacd86c06734787bf1e40 (patch) | |
| tree | 2d2ef3fe59d3a6b2cc42299e01941e9bd6f3ce4c /src/LexVB.cxx | |
| parent | bab9493b7fd1a451f59515d3bd952b733ef8cb74 (diff) | |
| download | scintilla-mirror-ebe3ffb62b60ed9684dbacd86c06734787bf1e40.tar.gz | |
Fixed scope of variable.
Diffstat (limited to 'src/LexVB.cxx')
| -rw-r--r-- | src/LexVB.cxx | 3 | 
1 files changed, 2 insertions, 1 deletions
| 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<char>(tolower(styler[start + i]));  #ifdef OLD /* PL 2000/05/18 -- Little optimization */  		s[i + 1] = '\0'; | 
