Merge "bitreader/writer: Change shift to signed"

This commit is contained in:
Alex Converse 2015-11-24 18:33:45 +00:00 committed by Gerrit Code Review
commit b84fa548fb
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ static INLINE int vpx_read(vpx_reader *r, int prob) {
} }
{ {
register unsigned int shift = vpx_norm[range]; register int shift = vpx_norm[range];
range <<= shift; range <<= shift;
value <<= shift; value <<= shift;
count -= shift; count -= shift;

View File

@ -35,7 +35,7 @@ static INLINE void vpx_write(vpx_writer *br, int bit, int probability) {
int count = br->count; int count = br->count;
unsigned int range = br->range; unsigned int range = br->range;
unsigned int lowvalue = br->lowvalue; unsigned int lowvalue = br->lowvalue;
register unsigned int shift; register int shift;
split = 1 + (((range - 1) * probability) >> 8); split = 1 + (((range - 1) * probability) >> 8);