From: Paul Eggert Date: Fri, 11 Mar 2011 08:01:09 +0000 (-0800) Subject: * image.c (gif_load): Fix pointer signedness. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~600 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2037898d7ada760ef84df072d05addf826710f65;p=emacs.git * image.c (gif_load): Fix pointer signedness. --- diff --git a/src/ChangeLog b/src/ChangeLog index cb535bad8a4..7170fcc162a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -5,6 +5,7 @@ (xpm_load): Redo to avoid "discards qualifiers" gcc warning. (x_edge_detection): Remove unnecessary cast that gcc -Wbad-function-cast diagnoses. + (gif_load): Fix pointer signedness. 2011-03-11 Paul Eggert diff --git a/src/image.c b/src/image.c index 810bd4be989..383e154b265 100644 --- a/src/image.c +++ b/src/image.c @@ -7127,7 +7127,7 @@ gif_load (struct frame *f, struct image *img) } /* Open the GIF file. */ - gif = fn_DGifOpenFileName (SDATA (file)); + gif = fn_DGifOpenFileName (SSDATA (file)); if (gif == NULL) { image_error ("Cannot open `%s'", file, Qnil);