diff --git a/vp9/common/vp9_convolve.c b/vp9/common/vp9_convolve.c index 3807ccc87dd79af80a2058838d054829c290b6ea..d30e0b488e81807fbeb506c7e75f7e3217f142ef 100644 --- a/vp9/common/vp9_convolve.c +++ b/vp9/common/vp9_convolve.c @@ -145,7 +145,7 @@ static const InterpKernel *get_filter_base(const int16_t *filter) { } static int get_filter_offset(const int16_t *f, const InterpKernel *base) { - return (const InterpKernel *)(intptr_t)f - base; + return (int)((const InterpKernel *)(intptr_t)f - base); } void vp9_convolve8_horiz_c(const uint8_t *src, ptrdiff_t src_stride,