diff options
| author | Joe Mueller <unknown> | 2015-07-30 14:35:17 +1000 | 
|---|---|---|
| committer | Joe Mueller <unknown> | 2015-07-30 14:35:17 +1000 | 
| commit | 58471e908a3b74b27379bb19a13d62cd8d4476b0 (patch) | |
| tree | 8f61293f34d008fea20584c631d23e58b3fe53aa /lexers/LexMagik.cxx | |
| parent | 2270ab97445c6f12bd0fddb273ab617fdb421594 (diff) | |
| download | scintilla-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/LexMagik.cxx')
| -rw-r--r-- | lexers/LexMagik.cxx | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/lexers/LexMagik.cxx b/lexers/LexMagik.cxx index 02d457d55..4a2a7b9fb 100644 --- a/lexers/LexMagik.cxx +++ b/lexers/LexMagik.cxx @@ -141,7 +141,7 @@ static void ColouriseMagikDoc(Sci_PositionU startPos, Sci_Position length, int i  	                char keywordChar = static_cast<char>(                          tolower(styler.SafeGetCharAt(                              scanPosition + -                                static_cast<int>(sc.currentPos+1), ' '))); +                                static_cast<Sci_Position>(sc.currentPos+1), ' ')));                      if(IsAlpha(keywordChar)) {                          keyword[scanPosition] = keywordChar;                      } else { @@ -365,18 +365,18 @@ static void FoldMagikDoc(Sci_PositionU startPos, Sci_Position length, int,      bool compact = styler.GetPropertyInt("fold.compact") != 0;      WordList &foldingElements = *keywordslists[5]; -    int endPos = startPos + length; -    int line = styler.GetLine(startPos); +    Sci_Position endPos = startPos + length; +    Sci_Position line = styler.GetLine(startPos);      int level = styler.LevelAt(line) & SC_FOLDLEVELNUMBERMASK;      int flags = styler.LevelAt(line) & ~SC_FOLDLEVELNUMBERMASK;      for( -        int currentPos = startPos; +        Sci_Position currentPos = startPos;          currentPos < endPos;          currentPos++) {              char currentState = styler.StyleAt(currentPos);              char c = styler.SafeGetCharAt(currentPos, ' '); -            int prevLine = styler.GetLine(currentPos - 1); +            Sci_Position prevLine = styler.GetLine(currentPos - 1);              line = styler.GetLine(currentPos);              // Default situation | 
