From d662158010c4eadcc59f2bb96183dbe5acf790f8 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: Ic77d6170a5a91cf58ec10c68656ac61a7c0ee41d --- 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 c5474a2d..fd30f307 100644 --- a/src/enc/backward_references.c +++ b/src/enc/backward_references.c @@ -553,7 +553,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]);