summaryrefslogtreecommitdiffstats
path: root/decoder.h
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-06 12:49:49 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-06 12:49:49 +0000
commit878fd2f4aebbd116062229b781c43e1549404d23 (patch)
tree8408091dff2e21db68947399488ad6f1fc5996d4 /decoder.h
parentAdding upstream version 1.6~pre1. (diff)
downloadclzip-878fd2f4aebbd116062229b781c43e1549404d23.tar.xz
clzip-878fd2f4aebbd116062229b781c43e1549404d23.zip
Adding upstream version 1.6~pre2.upstream/1.6_pre2
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'decoder.h')
-rw-r--r--decoder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder.h b/decoder.h
index ec82667..03db425 100644
--- a/decoder.h
+++ b/decoder.h
@@ -158,7 +158,7 @@ static inline int Rd_decode_tree6( struct Range_decoder * const rdec,
symbol = ( symbol << 1 ) | Rd_decode_bit( rdec, &bm[symbol] );
symbol = ( symbol << 1 ) | Rd_decode_bit( rdec, &bm[symbol] );
symbol = ( symbol << 1 ) | Rd_decode_bit( rdec, &bm[symbol] );
- return symbol - (1 << 6);
+ return symbol & 0x3F;
}
static inline int Rd_decode_tree_reversed( struct Range_decoder * const rdec,