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 | 7f6f9643d38f799155a76c108c8273f5cb2136ca (patch) | |
tree | 61fbfbb41de93e469f907d75db612a93f07995f1 /lexers/LexRust.cxx | |
parent | 83f45b0a9b0ed59736e7de796ec6db14c90be5c8 (diff) | |
download | scintilla-mirror-7f6f9643d38f799155a76c108c8273f5cb2136ca.tar.gz |
Update types for Unix LP64 after changes to Sci_Position/Sci_PositionU.
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 686326347..6f14c3720 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; |