shithub: libvpx

Download patch

ref: 69660a4b77b57572a639502e2a161a46321062ed
parent: 4cfde1caf0a3dff0740e48120d997428cc73c934
author: James Zern <jzern@google.com>
date: Thu May 10 19:08:54 EDT 2018

vpx_subtract_block_neon: add explicit cast

quiets ptrdiff_t -> int conversion warning

Change-Id: If6b545a736fc19e48e290961736b1618df97db3e

--- a/vpx_dsp/arm/subtract_neon.c
+++ b/vpx_dsp/arm/subtract_neon.c
@@ -66,8 +66,8 @@
   } else {
     assert(cols == 4);
     do {
-      const uint8x8_t s = load_unaligned_u8(src, src_stride);
-      const uint8x8_t p = load_unaligned_u8(pred, pred_stride);
+      const uint8x8_t s = load_unaligned_u8(src, (int)src_stride);
+      const uint8x8_t p = load_unaligned_u8(pred, (int)pred_stride);
       const uint16x8_t d = vsubl_u8(s, p);
       vst1_s16(diff + 0 * diff_stride, vreinterpret_s16_u16(vget_low_u16(d)));
       vst1_s16(diff + 1 * diff_stride, vreinterpret_s16_u16(vget_high_u16(d)));