diff options
author | Markus Heidelberg <markus.heidelberg@web.de> | 2015-01-11 09:02:29 +1100 |
---|---|---|
committer | Markus Heidelberg <markus.heidelberg@web.de> | 2015-01-11 09:02:29 +1100 |
commit | 2c4dad5173ea53539d78a547db8d6b305941cce4 (patch) | |
tree | 816ba79d293e044fc9b3f2cdde8260e4baa3b66e /lexers/LexHex.cxx | |
parent | be1868dba318b5610d5453e336869dee8021e98e (diff) | |
download | scintilla-mirror-2c4dad5173ea53539d78a547db8d6b305941cce4.tar.gz |
LexHex Tektronix: use the dedicated helper function for getting the length
Diffstat (limited to 'lexers/LexHex.cxx')
-rw-r--r-- | lexers/LexHex.cxx | 3 |
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 |