From 6fda58f137cc1408d66214d9b6352a2da3a33563 Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 14 Jun 2016 15:26:38 -0700 Subject: [PATCH] backward_references: quiet double->int warning since: 059aab4 Fix a compression regression for images with long uniform regions. Change-Id: I1783a74220961e8bc3bb42696e3412fe4bfc4ddb --- 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 8a445929..b3d4a80d 100644 --- a/src/enc/backward_references.c +++ b/src/enc/backward_references.c @@ -1162,7 +1162,7 @@ static int BackwardReferencesHashChainDistanceOnly( if (offset_cost == 0.) { j_max = 1; } else { - j_max = ceil(cost_manager->min_cost_cache_ / offset_cost); + j_max = (int)ceil(cost_manager->min_cost_cache_ / offset_cost); } // With the values we currently use for the model, offset_cost is