filters_sse2.c: quiet integer sanitizer warnings

missed in a788b49

with clang7+ quiets conversion warnings like:
implicit conversion from type 'int' of value -114 (32-bit, signed) to
type 'uint8_t' (aka 'unsigned char') changed the value to 142 (8-bit,
unsigned)

Change-Id: I52dcd9cd613107f5424177c277785b92430bffb7
This commit is contained in:
James Zern 2019-07-01 11:09:52 -07:00
parent 804540f183
commit a277d197a2

View File

@ -297,7 +297,9 @@ static void GradientPredictInverse_SSE2(const uint8_t* const in,
_mm_storel_epi64((__m128i*)&row[i], out);
}
for (; i < length; ++i) {
row[i] = in[i] + GradientPredictor_SSE2(row[i - 1], top[i], top[i - 1]);
row[i] =
(uint8_t)(in[i] +
GradientPredictor_SSE2(row[i - 1], top[i], top[i - 1]));
}
}
}