aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexMPT.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'lexers/LexMPT.cxx')
-rw-r--r--lexers/LexMPT.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/lexers/LexMPT.cxx b/lexers/LexMPT.cxx
index cbb45e3c4..2732fb4d5 100644
--- a/lexers/LexMPT.cxx
+++ b/lexers/LexMPT.cxx
@@ -89,7 +89,7 @@ static void ColourizeLotDoc(Sci_PositionU startPos, Sci_Position length, int, Wo
line.reserve(256); // Lot lines are less than 256 chars long most of the time. This should avoid reallocations
// Styles LOT document
- unsigned int i; // Declared here because it's used after the for loop
+ Sci_PositionU i; // Declared here because it's used after the for loop
for (i = startPos; i < startPos + length; ++i) {
char ch = chNext;
chNext = styler.SafeGetCharAt(i + 1);
@@ -120,9 +120,9 @@ static void ColourizeLotDoc(Sci_PositionU startPos, Sci_Position length, int, Wo
// fails (contiguous fail results within a section)
static void FoldLotDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler) {
bool foldCompact = styler.GetPropertyInt("fold.compact", 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);
char chNext = styler.SafeGetCharAt(startPos);
int style = SCE_LOT_DEFAULT;
@@ -133,7 +133,7 @@ static void FoldLotDoc(Sci_PositionU startPos, Sci_Position length, int, WordLis
if (startPos > 1)
style = styler.StyleAt(startPos - 2);
- for (unsigned int i = startPos; i < endPos; i++) {
+ for (Sci_PositionU i = startPos; i < endPos; i++) {
char ch = chNext;
chNext = styler.SafeGetCharAt(i + 1);