From a5216efc8cdd867b559e36420a8b90b6eca5ca00 Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Mon, 25 Sep 2017 11:02:22 +0200 Subject: [PATCH] Fix integer overflow warning. Though the overflow could happen, it does not change the end results. Change-Id: I1b84e022a0776d35eab5c5c4fb7d3563f5667bfa --- src/dsp/lossless.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dsp/lossless.c b/src/dsp/lossless.c index 27d73d83..a92f4107 100644 --- a/src/dsp/lossless.c +++ b/src/dsp/lossless.c @@ -272,8 +272,8 @@ void VP8LTransformColorInverse_C(const VP8LMultipliers* const m, const uint32_t argb = src[i]; const uint32_t green = argb >> 8; const uint32_t red = argb >> 16; - int new_red = red; - int new_blue = argb; + int new_red = red & 0xff; + int new_blue = argb & 0xff; new_red += ColorTransformDelta(m->green_to_red_, green); new_red &= 0xff; new_blue += ColorTransformDelta(m->green_to_blue_, green);