aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarkus Heidelberg <markus.heidelberg@web.de>2015-01-11 09:02:29 +1100
committerMarkus Heidelberg <markus.heidelberg@web.de>2015-01-11 09:02:29 +1100
commit112d049585f555a358cced18c2dd9fd0c90d1a62 (patch)
treeae1aff7b03122039aecf985cf2a6ed61fe77df2b
parent3bc1b683b367b3d137284c57235b6758084b5474 (diff)
downloadscintilla-mirror-112d049585f555a358cced18c2dd9fd0c90d1a62.tar.gz
LexHex Tektronix: use the dedicated helper function for getting the length
-rw-r--r--lexers/LexHex.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/lexers/LexHex.cxx b/lexers/LexHex.cxx
index 6877e9823..19c1604c3 100644
--- a/lexers/LexHex.cxx
+++ b/lexers/LexHex.cxx
@@ -556,7 +556,8 @@ static int GetHexaNibble(char hd)
static int CalcTEHexChecksum(unsigned int recStartPos, Accessor &styler)
{
unsigned int pos = recStartPos +1;
- unsigned int length = GetHexaChar(pos, styler);
+ unsigned int length = GetTEHexDigitCount(recStartPos, styler);
+
int cs = GetHexaNibble(styler.SafeGetCharAt(pos++));//length
cs += GetHexaNibble(styler.SafeGetCharAt(pos++));//length