vp9/common: Silence MSVC warning in vp9_convolve.c.
authorTom Finegan <tomfinegan@google.com>
Fri, 7 Feb 2014 05:24:08 +0000 (21:24 -0800)
committerTom Finegan <tomfinegan@google.com>
Fri, 7 Feb 2014 18:13:57 +0000 (10:13 -0800)
Added cast to int to silence MSVC warning.

Change-Id: I9ef4709d2e4cf0db070d9e52385c1b3f138b00a5

vp9/common/vp9_convolve.c

index 3807ccc..d30e0b4 100644 (file)
@@ -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,