From 2547adb13e24bcb6aa855b8e107a16bc0205002e Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Fri, 10 Jun 2011 11:46:48 -0400 Subject: [PATCH] * image.c (gif_load): Fix omitted cast error introduced by 2011-06-06 change. --- src/ChangeLog | 5 +++++ src/image.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 93aaef013fb..cbb0999d50e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-06-10 Chong Yidong + + * image.c (gif_load): Fix omitted cast error introduced by + 2011-06-06 change. + 2011-06-10 Martin Rudalics * window.h (resize_proportionally, orig_total_lines) diff --git a/src/image.c b/src/image.c index cdf05c78764..b6f54f01e95 100644 --- a/src/image.c +++ b/src/image.c @@ -7238,7 +7238,7 @@ gif_load (struct frame *f, struct image *img) /* From gif89a spec: 1 = "keep in place", 2 = "restore to background". Treat any other value like 2. */ disposal = (extblock->Bytes[0] >> 2) & 7; - transparency_color_index = extblock->Bytes[3]; + transparency_color_index = (unsigned char) extblock->Bytes[3]; break; } } -- 2.39.2