commit | 104dbbbfd9f82cfa08ec4ad1da649441db4e6306 | [log] [tgz] |
---|---|---|
author | James Zern <jzern@google.com> | Thu Jul 18 16:13:39 2013 -0700 |
committer | James Zern <jzern@google.com> | Thu Jul 18 16:13:39 2013 -0700 |
tree | 1924a826dc09566e5b45b33b7587e7575a1bda17 | |
parent | b7750812838eb84b55b8bcf25b9398cc41cdc0eb [diff] [blame] |
tests: silence a few type related warnings Change-Id: If908328c1dbbb5bd84c57e30fab1cda1804933e4
diff --git a/test/util.h b/test/util.h index 533a1db..4d7f3d4 100644 --- a/test/util.h +++ b/test/util.h
@@ -37,7 +37,7 @@ img2->planes[VPX_PLANE_Y][i * img2->stride[VPX_PLANE_Y] + j]; sqrerr += d * d; } - double mse = sqrerr / (width_y * height_y); + double mse = static_cast<double>(sqrerr) / (width_y * height_y); double psnr = 100.0; if (mse > 0.0) { psnr = 10 * log10(255.0 * 255.0 / mse);