aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexLout.cxx
diff options
context:
space:
mode:
authorJoe Mueller <unknown>2015-07-30 14:35:17 +1000
committerJoe Mueller <unknown>2015-07-30 14:35:17 +1000
commit58471e908a3b74b27379bb19a13d62cd8d4476b0 (patch)
tree8f61293f34d008fea20584c631d23e58b3fe53aa /lexers/LexLout.cxx
parent2270ab97445c6f12bd0fddb273ab617fdb421594 (diff)
downloadscintilla-mirror-58471e908a3b74b27379bb19a13d62cd8d4476b0.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/LexLout.cxx')
-rw-r--r--lexers/LexLout.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/lexers/LexLout.cxx b/lexers/LexLout.cxx
index e0458218d..39709827d 100644
--- a/lexers/LexLout.cxx
+++ b/lexers/LexLout.cxx
@@ -143,9 +143,9 @@ static void ColouriseLoutDoc(Sci_PositionU startPos, Sci_Position length, int in
static void FoldLoutDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *[],
Accessor &styler) {
- unsigned int endPos = startPos + length;
+ 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];
@@ -153,7 +153,7 @@ static void FoldLoutDoc(Sci_PositionU startPos, Sci_Position length, int, WordLi
int styleNext = styler.StyleAt(startPos);
char s[10] = "";
- 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 style = styleNext;
@@ -162,7 +162,7 @@ static void FoldLoutDoc(Sci_PositionU startPos, Sci_Position length, int, WordLi
if (style == SCE_LOUT_WORD) {
if (ch == '@') {
- for (unsigned int j = 0; j < 8; j++) {
+ for (Sci_PositionU j = 0; j < 8; j++) {
if (!IsAWordChar(styler[i + j])) {
break;
}