aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexRust.cxx
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2017-07-17 15:18:31 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2017-07-17 15:18:31 +1000
commit7f6f9643d38f799155a76c108c8273f5cb2136ca (patch)
tree61fbfbb41de93e469f907d75db612a93f07995f1 /lexers/LexRust.cxx
parent83f45b0a9b0ed59736e7de796ec6db14c90be5c8 (diff)
downloadscintilla-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.cxx2
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;