ptrdiff_t is the correct type for array strides and similar.
---
 tests/checkasm/vp8dsp.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/checkasm/vp8dsp.c b/tests/checkasm/vp8dsp.c
index 40e4061..ac0a788 100644
--- a/tests/checkasm/vp8dsp.c
+++ b/tests/checkasm/vp8dsp.c
@@ -331,15 +331,15 @@ static void check_mc(void)
 // Set the pixel to c +/- [d,d+e] (making sure it won't be clipped)
 #define setdx2(a, b, o, c, d, e) setpx(a, b, o = c + ((d) + (rnd() % (e))) * 
(c >= 128 ? -1 : 1))
 
-static void randomize_loopfilter_buffers(int lineoff, int str,
+static void randomize_loopfilter_buffers(int lineoff, ptrdiff_t str,
                                          int dir, int flim_E, int flim_I,
                                          int hev_thresh, uint8_t *buf,
                                          int force_hev)
 {
     uint32_t mask = 0xff;
     int off = dir ? lineoff : lineoff * str;
-    int istride = dir ? 1 : str;
-    int jstride = dir ? str : 1;
+    ptrdiff_t istride = dir ? 1 : str;
+    ptrdiff_t jstride = dir ? str : 1;
     int i;
     for (i = 0; i < 8; i += 2) {
         // Row 0 will trigger hev for q0/q1, row 2 will trigger hev for p0/p1,
-- 
2.7.3

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to