]> granicus.if.org Git - libvpx/commitdiff
Cast bsize as int to print a meaninful debug info
authorLuca Barbato <lu_zero@gentoo.org>
Wed, 6 Jun 2018 22:49:39 +0000 (22:49 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 8 Jun 2018 03:25:49 +0000 (05:25 +0200)
cout helpfully decides to print the bsize value as non-printable char
otherwise.

Change-Id: Id91b52d6475ae9f869365468d1d56d94b2e10ecb

test/vp9_subtract_test.cc

index ac43dd684cf0a8f3fff3c9469a735e4222b8e82a..a58a67916bd8ba7216e17c493d54cfd1e0f34d2a 100644 (file)
@@ -102,7 +102,7 @@ TEST_P(VP9SubtractBlockTest, SimpleSubtract) {
         for (int c = 0; c < block_width_; ++c) {
           EXPECT_EQ(diff_[r * block_width_ + c],
                     (src_[r * block_width_ + c] - pred_[r * block_width_ + c]))
-              << "r = " << r << ", c = " << c << ", bs = " << bsize;
+              << "r = " << r << ", c = " << c << ", bs = " << (int)bsize;
         }
       }
 
@@ -114,7 +114,7 @@ TEST_P(VP9SubtractBlockTest, SimpleSubtract) {
           EXPECT_EQ(diff_[r * block_width_ * 2 + c],
                     (src_[r * block_width_ * 2 + c] -
                      pred_[r * block_width_ * 2 + c]))
-              << "r = " << r << ", c = " << c << ", bs = " << bsize;
+              << "r = " << r << ", c = " << c << ", bs = " << (int)bsize;
         }
       }
     }