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/ipred_tmpl.c
parent4c21c9312d31300401554404b188478f8f25f404 (diff)
Add casts to silence warnings about intended type conversions/shortenings
Diffstat (limited to 'src/ipred_tmpl.c')
-rw-r--r--src/ipred_tmpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipred_tmpl.c b/src/ipred_tmpl.c
index dff3ec9..a6eb999 100644
--- a/src/ipred_tmpl.c
+++ b/src/ipred_tmpl.c
@@ -719,7 +719,7 @@ static void pal_pred_c(pixel *dst, const ptrdiff_t stride,
{
for (int y = 0; y < h; y++) {
for (int x = 0; x < w; x++)
- dst[x] = pal[idx[x]];
+ dst[x] = (pixel) pal[idx[x]];
idx += w;
dst += PXSTRIDE(stride);
}