From 7f6f9643d38f799155a76c108c8273f5cb2136ca Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Mon, 17 Jul 2017 15:18:31 +1000 Subject: Update types for Unix LP64 after changes to Sci_Position/Sci_PositionU. --- lexers/LexRust.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexers/LexRust.cxx') 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; -- cgit v1.2.3