fix double to float conversion warning

introduced in:
 a792b91 fix the -g/O3 discrepancy for 32bit compile

Change-Id: I6a77223f237527eda4ee1d6eaa993351bd74f1d6
This commit is contained in:
James Zern 2012-10-08 18:27:27 -07:00
parent 7b3eb372ad
commit e855208c16

View File

@ -552,7 +552,7 @@ static int BackwardReferencesHashChainDistanceOnly(
cost_val += GetLiteralCost(cost_model, argb[i]) * mul1; cost_val += GetLiteralCost(cost_model, argb[i]) * mul1;
} }
if (cost[i] > cost_val) { if (cost[i] > cost_val) {
cost[i] = cost_val; cost[i] = (float)cost_val;
dist_array[i] = 1; // only one is inserted. dist_array[i] = 1; // only one is inserted.
} }
if (use_color_cache) VP8LColorCacheInsert(&hashers, argb[i]); if (use_color_cache) VP8LColorCacheInsert(&hashers, argb[i]);