Commit b84fa548 authored by Alex Converse's avatar Alex Converse Committed by Gerrit Code Review

Merge "bitreader/writer: Change shift to signed"

parents 4b038ad2 6aa2163b
......@@ -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;
value <<= shift;
count -= shift;
......
......@@ -35,7 +35,7 @@ static INLINE void vpx_write(vpx_writer *br, int bit, int probability) {
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment