diff options
Diffstat (limited to 'lexers/LexGAP.cxx')
-rw-r--r-- | lexers/LexGAP.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lexers/LexGAP.cxx b/lexers/LexGAP.cxx index 413839c45..ee0a7ad69 100644 --- a/lexers/LexGAP.cxx +++ b/lexers/LexGAP.cxx @@ -39,8 +39,8 @@ static inline bool IsGAPOperator(char ch) { return false; } -static void GetRange(unsigned int start, unsigned int end, Accessor &styler, char *s, unsigned int len) { - unsigned int i = 0; +static void GetRange(Sci_PositionU start, Sci_PositionU end, Accessor &styler, char *s, Sci_PositionU len) { + Sci_PositionU i = 0; while ((i < end - start + 1) && (i < len-1)) { s[i] = static_cast<char>(styler[start + i]); i++; @@ -197,19 +197,19 @@ static int ClassifyFoldPointGAP(const char* s) { return level; } -static void FoldGAPDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList**, Accessor &styler) { - unsigned int endPos = startPos + length; +static void FoldGAPDoc( Sci_PositionU startPos, Sci_Position length, int initStyle, WordList** , Accessor &styler) { + Sci_PositionU endPos = startPos + length; int visibleChars = 0; - int lineCurrent = styler.GetLine(startPos); + Sci_Position lineCurrent = styler.GetLine(startPos); int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; int levelCurrent = levelPrev; char chNext = styler[startPos]; int styleNext = styler.StyleAt(startPos); int style = initStyle; - int lastStart = 0; + Sci_Position lastStart = 0; - for (unsigned int i = startPos; i < endPos; i++) { + for (Sci_PositionU i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); int stylePrev = style; |