ref: ccd31a5a2f3914de15ebcc12a2d2f4c7b6408874
parent: 9444e6923954f0b4308c0564a1107572e66c4dda
author: Jean-Baptiste Kempf <jb@videolan.org>
date: Sat Sep 29 16:47:10 EDT 2018
lf_apply: explicitly mark a constant as unsigned This fixes a warning, but right-shift should always be on unsigned, anyway...
--- a/src/lf_apply.c
+++ b/src/lf_apply.c
@@ -280,7 +280,7 @@
uint32_t *const uv_vmask = lflvl[x].filter_uv[1][starty4 >> ss_ver];
const unsigned uv_vm = uv_vmask[0] | uv_vmask[1];
- for (unsigned mask = 1, i = 0; i < (32 >> ss_hor); mask <<= 1, i++) {
+ for (unsigned mask = 1, i = 0; i < (32U >> ss_hor); mask <<= 1, i++) {
if (!(uv_vm & mask)) continue;
const int idx = !!(uv_vmask[1] & mask);
uv_vmask[1] &= ~mask;