shithub: libvpx

Download patch

ref: 41e6ec4a5776016b9d9b635a4520229b7be3e83e
parent: 10783d4f3a6188a01f9a993c56ab0013acd97214
author: Deb Mukherjee <[email protected]>
date: Sat Sep 13 00:11:50 EDT 2014

Visual Studio build (warning) fix

Explicit type casting to prevent warning.

Change-Id: Ib5be4ad6d4126d88f7c67d246bb085df1e813329

--- a/test/fdct8x8_test.cc
+++ b/test/fdct8x8_test.cc
@@ -373,7 +373,7 @@
 
       reference_8x8_dct_2d(in, out_r);
       for (int j = 0; j < kNumCoeffs; ++j)
-        coeff[j] = round(out_r[j]);
+        coeff[j] = static_cast<tran_low_t>(round(out_r[j]));
 
       if (bit_depth_ == VPX_BITS_8) {
         ASM_REGISTER_STATE_CHECK(RunInvTxfm(coeff, dst, pitch_));
@@ -416,7 +416,7 @@
       RunFwdTxfm(in, coeff, pitch_);
       reference_8x8_dct_2d(in, out_r);
       for (int j = 0; j < kNumCoeffs; ++j)
-        coeff_r[j] = round(out_r[j]);
+        coeff_r[j] = static_cast<tran_low_t>(round(out_r[j]));
 
       for (int j = 0; j < kNumCoeffs; ++j) {
         const uint32_t diff = coeff[j] - coeff_r[j];