aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexProgress.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/LexProgress.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/LexProgress.cxx')
-rw-r--r--lexers/LexProgress.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/lexers/LexProgress.cxx b/lexers/LexProgress.cxx
index acbdaafe3..844b635ae 100644
--- a/lexers/LexProgress.cxx
+++ b/lexers/LexProgress.cxx
@@ -210,9 +210,9 @@ static void FoldNoBox4glDoc(Sci_PositionU startPos, Sci_Position length, int ini
bool foldComment = styler.GetPropertyInt("fold.comment") != 0;
bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0;
bool foldAtElse = styler.GetPropertyInt("fold.at.else", 0) != 0;
- 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 levelCurrent = SC_FOLDLEVELBASE;
if (lineCurrent > 0)
levelCurrent = styler.LevelAt(lineCurrent-1) >> 16;
@@ -221,7 +221,7 @@ static void FoldNoBox4glDoc(Sci_PositionU startPos, Sci_Position length, int ini
char chNext = static_cast<char>(tolower(styler[startPos]));
int styleNext = styler.StyleAt(startPos);
int style = initStyle;
- for (unsigned int i = startPos; i < endPos; i++) {
+ for (Sci_PositionU i = startPos; i < endPos; i++) {
char ch = chNext;
chNext = static_cast<char>(tolower(styler.SafeGetCharAt(i + 1)));
int stylePrev = style;