shithub: dav1d

Download patch

ref: 623132aca27c4d637b25c098f8b43d5e4eaeda7a
parent: 014dbe01c9229a4e1fe8efa098ec3a42634d3735
author: Janne Grunau <[email protected]>
date: Wed Nov 14 13:42:38 EST 2018

checkasm: fix undefined signed int left shift by 31 in loopfilter test

--- a/tests/checkasm/loopfilter.c
+++ b/tests/checkasm/loopfilter.c
@@ -141,7 +141,7 @@
 
             for (int j = 0; j < n_blks; j++) {
                 const int idx = rand() % (i + 2);
-                if (idx) vmask[idx - 1] |= 1 << j;
+                if (idx) vmask[idx - 1] |= 1U << j;
                 if (dir) {
                     l[j][lf_idx] = rand() & 63;
                     l[j + 32][lf_idx] = rand() & 63;