From 29373eefc9a6fc22a09255903fc8a6220b3c1e05 Mon Sep 17 00:00:00 2001 From: Yaowu Xu Date: Thu, 19 Oct 2017 15:50:34 -0700 Subject: [PATCH] Squash type conversion warnings in MSVC Change-Id: I457edba98dd1ebbd212651247d6c0d1a34f780d6 --- av1/encoder/rdopt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c index 0e2e31e82..12b13f78f 100644 --- a/av1/encoder/rdopt.c +++ b/av1/encoder/rdopt.c @@ -1206,8 +1206,8 @@ static void get_energy_distribution_finer(const int16_t *diff, int stride, // row/column, when computing horizontal/vertical correlation. static void get_horver_correlation_full(const int16_t *diff, int stride, int w, int h, float *hcorr, float *vcorr) { - const float num_hor = h * (w - 1); - const float num_ver = (h - 1) * w; + const float num_hor = (float)(h * (w - 1)); + const float num_ver = (float)((h - 1) * w); int i, j; // The following notation is used: -- 2.22.0