ref: 034f94c127b4d608200d94889c52e7e42b2f62e4
parent: 0284e3829309d26eb1b2d9863d55322824153465
author: Luca Barbato <lu_zero@gentoo.org>
date: Wed Jun 6 18:49:39 EDT 2018
Cast bsize as int to print a meaninful debug info cout helpfully decides to print the bsize value as non-printable char otherwise. Change-Id: Id91b52d6475ae9f869365468d1d56d94b2e10ecb
--- a/test/vp9_subtract_test.cc
+++ b/test/vp9_subtract_test.cc
@@ -102,7 +102,7 @@
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 @@
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;
}
}
}