S-Record lexer: extract reusable parts of helper functions CalcChecksum() takes a parameter to decide between one's or two's complement. The variable "cs" has been changed to "signed int" to simplifiy calculation of the two's complement with signed arithmetic instead of using bitwise operations, which would cause "overflow" warnings in Coverity without additional "& 0xFF" masking.
S-Record lexer: extract reusable parts of helper functions
CalcChecksum() takes a parameter to decide between one's or two's
complement. The variable "cs" has been changed to "signed int" to
simplifiy calculation of the two's complement with signed arithmetic
instead of using bitwise operations, which would cause "overflow"
warnings in Coverity without additional "& 0xFF" masking.

rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror