]> granicus.if.org Git - libvpx/commitdiff
Visual studio build fix using explicit cast
authorDeb Mukherjee <debargha@google.com>
Fri, 14 Nov 2014 23:12:01 +0000 (15:12 -0800)
committerDeb Mukherjee <debargha@google.com>
Fri, 14 Nov 2014 23:12:01 +0000 (15:12 -0800)
Change-Id: If74510370723e497f4f33d988b8b398124edf69b

test/sad_test.cc

index c7eadddc7253fead8c462c9af12af300089e584c..615aad469d17c65f97d9de4a2df2eebfc0183189 100644 (file)
@@ -254,12 +254,12 @@ class SADTestBase : public ::testing::Test {
       for (int w = 0; w < width_; ++w) {
 #if CONFIG_VP9_HIGHBITDEPTH
         if (!use_high_bit_depth_) {
-          data8[h * stride + w] = fill_constant;
+          data8[h * stride + w] = static_cast<uint8_t>(fill_constant);
         } else {
           data16[h * stride + w] = fill_constant;
         }
 #else
-        data[h * stride + w] = fill_constant;
+        data[h * stride + w] = static_cast<uint8_t>(fill_constant);
 #endif
       }
     }