aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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