]> granicus.if.org Git - libvpx/commitdiff
convolve_test: Fix high bit depth IOC runtime errors.
authorTom Finegan <tomfinegan@google.com>
Fri, 13 May 2016 16:42:58 +0000 (09:42 -0700)
committerTom Finegan <tomfinegan@google.com>
Fri, 13 May 2016 16:42:58 +0000 (09:42 -0700)
Add a cast.

BUG=webm:1225

Change-Id: I34ea18ee816569485c1f1046a81fd2a0ce527ac8

test/convolve_test.cc

index 9c71f239b9a72b4dd60b89570b2799e10a467311..73b0edb99b59402b88c7533c60e9191b562ccd2b 100644 (file)
@@ -231,7 +231,8 @@ void highbd_filter_block2d_8_c(const uint16_t *src_ptr,
    * and filter_max_width = 16
    */
   uint16_t intermediate_buffer[71 * kMaxDimension];
-  const int intermediate_next_stride = 1 - intermediate_height * output_width;
+  const int intermediate_next_stride =
+      1 - static_cast<int>(intermediate_height * output_width);
 
   // Horizontal pass (src -> transposed intermediate).
   {