From e855208c16b1cd0882ecded201428736498b0107 Mon Sep 17 00:00:00 2001 From: James Zern Date: Mon, 8 Oct 2012 18:27:27 -0700 Subject: [PATCH] fix double to float conversion warning introduced in: a792b91 fix the -g/O3 discrepancy for 32bit compile Change-Id: I6a77223f237527eda4ee1d6eaa993351bd74f1d6 --- src/enc/backward_references.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enc/backward_references.c b/src/enc/backward_references.c index 1ce966f9..f9842002 100644 --- a/src/enc/backward_references.c +++ b/src/enc/backward_references.c @@ -552,7 +552,7 @@ static int BackwardReferencesHashChainDistanceOnly( cost_val += GetLiteralCost(cost_model, argb[i]) * mul1; } if (cost[i] > cost_val) { - cost[i] = cost_val; + cost[i] = (float)cost_val; dist_array[i] = 1; // only one is inserted. } if (use_color_cache) VP8LColorCacheInsert(&hashers, argb[i]);