diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 09:58:16 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 09:58:16 +0000 |
commit | 51c12e5bd97a911ab71bae9cc4c22c5a072a2a38 (patch) | |
tree | 6afa6655e77149ce493d352f229d1b1258fd5994 /decoder.h | |
parent | Adding upstream version 1.15~pre1. (diff) | |
download | lzip-51c12e5bd97a911ab71bae9cc4c22c5a072a2a38.tar.xz lzip-51c12e5bd97a911ab71bae9cc4c22c5a072a2a38.zip |
Adding upstream version 1.15~pre2.upstream/1.15_pre2
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'decoder.h')
-rw-r--r-- | decoder.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -176,11 +176,11 @@ public: match_byte <<= 1; const int match_bit = match_byte & 0x100; const int bit = decode_bit( bm1[match_bit+symbol] ); - symbol = ( symbol << 1 ) + bit; + symbol = ( symbol << 1 ) | bit; if( match_bit != bit << 8 ) { while( symbol < 0x100 ) - symbol = ( symbol << 1 ) + decode_bit( bm[symbol] ); + symbol = ( symbol << 1 ) | decode_bit( bm[symbol] ); break; } } |