diff options
| author | Joe Mueller <devnull@localhost> | 2015-07-30 14:35:17 +1000 |
|---|---|---|
| committer | Joe Mueller <devnull@localhost> | 2015-07-30 14:35:17 +1000 |
| commit | 96229bb5f01e86efe382523e1ee79ff23bdcc8e0 (patch) | |
| tree | 5aa3c8becad92a397b02445001383e188070f287 /lexers/LexCsound.cxx | |
| parent | 7604a6b2a98fc2250408368eb51f8f6827d888c8 (diff) | |
| download | scintilla-mirror-96229bb5f01e86efe382523e1ee79ff23bdcc8e0.tar.gz | |
Use Sci_Position / Sci_PositionU for variables in lexers that represent
positions and line numbers and may be widened to 64-bits in a future release.
Diffstat (limited to 'lexers/LexCsound.cxx')
| -rw-r--r-- | lexers/LexCsound.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lexers/LexCsound.cxx b/lexers/LexCsound.cxx index 292eb15c7..6d065c8d1 100644 --- a/lexers/LexCsound.cxx +++ b/lexers/LexCsound.cxx @@ -152,15 +152,15 @@ static void ColouriseCsoundDoc(Sci_PositionU startPos, Sci_Position length, int static void FoldCsoundInstruments(Sci_PositionU startPos, Sci_Position length, int /* initStyle */, WordList *[], Accessor &styler) { - unsigned int lengthDoc = startPos + length; + Sci_PositionU lengthDoc = 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 stylePrev = 0; int styleNext = styler.StyleAt(startPos); - for (unsigned int i = startPos; i < lengthDoc; i++) { + for (Sci_PositionU i = startPos; i < lengthDoc; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); int style = styleNext; |
