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/LexMagik.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/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 |