From: Chong Yidong Date: Fri, 10 Jun 2011 15:46:48 +0000 (-0400) Subject: * image.c (gif_load): Fix omitted cast error introduced by 2011-06-06 change. X-Git-Tag: emacs-pretest-24.0.90~104^2~593 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2547adb13e24bcb6aa855b8e107a16bc0205002e;p=emacs.git * image.c (gif_load): Fix omitted cast error introduced by 2011-06-06 change. --- 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; } }