Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2019-02-07 15:44:24 +0300
committerRonald S. Bultje <rsbultje@gmail.com>2019-02-13 01:46:50 +0300
commit35b1cde28a153b54e3534b8bae75319197dca2f2 (patch)
tree045cfbdc753e1fc8344ad83be3d438a3febad401 /src/getbits.c
parent4c21c9312d31300401554404b188478f8f25f404 (diff)
Add casts to silence warnings about intended type conversions/shortenings
Diffstat (limited to 'src/getbits.c')
-rw-r--r--src/getbits.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/getbits.c b/src/getbits.c
index 0a34601..07935f5 100644
--- a/src/getbits.c
+++ b/src/getbits.c
@@ -70,7 +70,7 @@ unsigned dav1d_get_bits(GetBits *const c, const unsigned n) {
c->bits_left -= n;
c->state <<= n;
- return state >> (64 - n);
+ return (unsigned) (state >> (64 - n));
}
int dav1d_get_sbits(GetBits *const c, const unsigned n) {