summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2019-06-20 23:06:13 -0700
committerJames Zern <jzern@google.com>2019-06-20 23:06:13 -0700
commit4627c1c91bccae1afcb8d1f29a5c94a74c830d5b (patch)
tree51c1bfee1befd39633cfec9fc015c615078d0fcb
parentc84673a62fe8452ccf5134c8d57c2725a4f316f7 (diff)
downloadlibwebp-4627c1c91bccae1afcb8d1f29a5c94a74c830d5b.tar.gz
lossless_enc,TransformColorBlue: quiet uint32_t conv warning
no change in object code from clang-7 integer sanitizer: implicit conversion from type 'uint32_t' (aka 'unsigned int') of value 1955895199 (32-bit, unsigned) to type 'uint8_t' (aka 'unsigned char') changed the value to 159 (8-bit, unsigned) Change-Id: I0c3022339e34b9c9af03167ab827ade677973644
-rw-r--r--src/dsp/lossless_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dsp/lossless_enc.c b/src/dsp/lossless_enc.c
index 1408fbf5..b0346cab 100644
--- a/src/dsp/lossless_enc.c
+++ b/src/dsp/lossless_enc.c
@@ -546,7 +546,7 @@ static WEBP_INLINE uint8_t TransformColorBlue(uint8_t green_to_blue,
uint32_t argb) {
const uint32_t green = argb >> 8;
const uint32_t red = argb >> 16;
- uint8_t new_blue = argb;
+ uint8_t new_blue = argb & 0xff;
new_blue -= ColorTransformDelta(green_to_blue, green);
new_blue -= ColorTransformDelta(red_to_blue, red);
return (new_blue & 0xff);