diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2017-07-17 15:18:31 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2017-07-17 15:18:31 +1000 |
commit | 46d35a2e30079cb7ce690cd60aece17cc00f1de1 (patch) | |
tree | 586b2d92f94d0dbf09329bde04caa9f2736d71c3 /lexers/LexRust.cxx | |
parent | 5d888154b02ae8665464bcdfaf89e0be3a582320 (diff) | |
download | scintilla-mirror-46d35a2e30079cb7ce690cd60aece17cc00f1de1.tar.gz |
Backport: Update types for Unix LP64 after changes to Sci_Position/Sci_PositionU.
Backport of changeset 6352:df1416e3ff3a.
Diffstat (limited to 'lexers/LexRust.cxx')
-rw-r--r-- | lexers/LexRust.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexRust.cxx b/lexers/LexRust.cxx index ff5e816ba..5e8a4d167 100644 --- a/lexers/LexRust.cxx +++ b/lexers/LexRust.cxx @@ -214,7 +214,7 @@ static void ScanIdentifier(Accessor& styler, Sci_Position& pos, WordList *keywor styler.ColourTo(pos - 1, SCE_RUST_MACRO); } else { char s[MAX_RUST_IDENT_CHARS + 1]; - int len = pos - start; + Sci_Position len = pos - start; len = len > MAX_RUST_IDENT_CHARS ? MAX_RUST_IDENT_CHARS : len; GrabString(s, styler, start, len); bool keyword = false; |