ref: b84fa548fb0160c7fb4a03168730079cd1feefd0
parent: 4b038ad2ef3cb6f8afba69628c006b6d6cfbd7e2
parent: 6aa2163b6975872cab3f326218cfadf01ee2a78c
author: Alex Converse <[email protected]>
date: Tue Nov 24 13:33:45 EST 2015
Merge "bitreader/writer: Change shift to signed"
--- a/vpx_dsp/bitreader.h
+++ b/vpx_dsp/bitreader.h
@@ -98,7 +98,7 @@
}
{
- register unsigned int shift = vpx_norm[range];
+ register int shift = vpx_norm[range];
range <<= shift;
value <<= shift;
count -= shift;
--- a/vpx_dsp/bitwriter.h
+++ b/vpx_dsp/bitwriter.h
@@ -35,7 +35,7 @@
int count = br->count;
unsigned int range = br->range;
unsigned int lowvalue = br->lowvalue;
- register unsigned int shift;
+ register int shift;
split = 1 + (((range - 1) * probability) >> 8);