diff options
author | Alex Converse <aconverse@google.com> | 2015-11-19 15:07:55 -0800 |
---|---|---|
committer | Alex Converse <aconverse@google.com> | 2015-11-19 15:13:39 -0800 |
commit | 6aa2163b6975872cab3f326218cfadf01ee2a78c (patch) | |
tree | ca9982ad1bf59c6ff683b306041aa8b5a9ad5b83 /vpx_dsp/bitreader.h | |
parent | 42b7c44b2fa40ff8b070809e79f9931526f5fe52 (diff) | |
download | libvpx-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.h | 2 |
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; |