From 5ae220bef6b44f7384738a55fd3374e5c9b2713c Mon Sep 17 00:00:00 2001 From: Scott Hancher Date: Wed, 2 Dec 2015 17:17:57 +0000 Subject: [PATCH] backward_references.c: Fixed compiler warning "Implicit conversion loses integer precision: 'long' to 'int'." Change-Id: I1aec7431f84123e5280447883eb80b84a3821d91 --- 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 049125e5..e15024d9 100644 --- a/src/enc/backward_references.c +++ b/src/enc/backward_references.c @@ -88,7 +88,7 @@ static WEBP_INLINE int FindMatchLength(const uint32_t* const array1, } else { // if the uint32_t pointed to are the same, then the following ones have // to be different - return (array1_32 - array1) + (*array1_32 == *array2_32); + return (int)((array1_32 - array1) + (*array1_32 == *array2_32)); } }