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/LexConf.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/LexConf.cxx')
-rw-r--r-- | lexers/LexConf.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lexers/LexConf.cxx b/lexers/LexConf.cxx index f41e623cc..2eed51b71 100644 --- a/lexers/LexConf.cxx +++ b/lexers/LexConf.cxx @@ -35,10 +35,10 @@ static void ColouriseConfDoc(Sci_PositionU startPos, Sci_Position length, int, W { int state = SCE_CONF_DEFAULT; char chNext = styler[startPos]; - int lengthDoc = startPos + length; + Sci_Position lengthDoc = startPos + length; // create a buffer large enough to take the largest chunk... char *buffer = new char[length+1]; - int bufferCount = 0; + Sci_Position bufferCount = 0; // this assumes that we have 2 keyword list in conf.properties WordList &directives = *keywordLists[0]; @@ -48,7 +48,7 @@ static void ColouriseConfDoc(Sci_PositionU startPos, Sci_Position length, int, W // using the hand-written state machine shown below styler.StartAt(startPos); styler.StartSegment(startPos); - for (int i = startPos; i < lengthDoc; i++) { + for (Sci_Position i = startPos; i < lengthDoc; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); |