summaryrefslogtreecommitdiff
path: root/vpx_dsp/bitreader.h
diff options
context:
space:
mode:
authorAlex Converse <aconverse@google.com>2015-11-19 15:07:55 -0800
committerAlex Converse <aconverse@google.com>2015-11-19 15:13:39 -0800
commit6aa2163b6975872cab3f326218cfadf01ee2a78c (patch)
treeca9982ad1bf59c6ff683b306041aa8b5a9ad5b83 /vpx_dsp/bitreader.h
parent42b7c44b2fa40ff8b070809e79f9931526f5fe52 (diff)
downloadlibvpx-6aa2163b6975872cab3f326218cfadf01ee2a78c.tar
libvpx-6aa2163b6975872cab3f326218cfadf01ee2a78c.tar.gz
libvpx-6aa2163b6975872cab3f326218cfadf01ee2a78c.tar.bz2
libvpx-6aa2163b6975872cab3f326218cfadf01ee2a78c.zip
bitreader/writer: Change shift to signed
Silences several legal but suspicious unsigned overflows found with clang -fsanitize=integer. Change-Id: I69399751492a183167932b0a10751c433c32ca7b
Diffstat (limited to 'vpx_dsp/bitreader.h')
-rw-r--r--vpx_dsp/bitreader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vpx_dsp/bitreader.h b/vpx_dsp/bitreader.h
index e817c8b0c..9a441b410 100644
--- a/vpx_dsp/bitreader.h
+++ b/vpx_dsp/bitreader.h
@@ -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;