From 91d928e41eb04dfb81656310f503a54eaf90293b Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 7 May 2013 21:49:37 +1000 Subject: Simplified code and avoid warning. --- lexers/LexOthers.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lexers/LexOthers.cxx b/lexers/LexOthers.cxx index 829978180..a1a2e3054 100644 --- a/lexers/LexOthers.cxx +++ b/lexers/LexOthers.cxx @@ -1047,10 +1047,10 @@ static int RecogniseErrorListLine(const char *lineBuffer, unsigned int lengthLin } } else if (state == stCtagsStart) { if ((lineBuffer[i - 1] == '\t') && - ((ch == '/' && lineBuffer[i + 1] == '^') || Is0To9(ch))) { + ((ch == '/' && chNext == '^') || Is0To9(ch))) { state = stCtags; break; - } else if ((ch == '/') && (lineBuffer[i + 1] == '^')) { + } else if ((ch == '/') && (chNext == '^')) { state = stCtagsStartString; } } else if ((state == stCtagsStartString) && ((lineBuffer[i] == '$') && (lineBuffer[i + 1] == '/'))) { -- cgit v1.2.3