emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 c30d1b4: Port to Ubuntu 16.04 --enable-gcc-warnin


From: Paul Eggert
Subject: [Emacs-diffs] emacs-25 c30d1b4: Port to Ubuntu 16.04 --enable-gcc-warnings
Date: Sun, 24 Apr 2016 20:39:38 +0000

branch: emacs-25
commit c30d1b4a1be535d4def3b6cbc5d27f167eb1176e
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Port to Ubuntu 16.04 --enable-gcc-warnings
    
    * src/image.c (gif_load) [HAVE_GIF]: Fix pointer signedness problem.
---
 src/image.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/image.c b/src/image.c
index e8418b8..b07c181 100644
--- a/src/image.c
+++ b/src/image.c
@@ -7979,7 +7979,8 @@ gif_load (struct frame *f, struct image *img)
        {
          img->lisp_data
            = Fcons (make_number (ext->Function),
-                    Fcons (make_unibyte_string (ext->Bytes, ext->ByteCount),
+                    Fcons (make_unibyte_string ((char *) ext->Bytes,
+                                                ext->ByteCount),
                            img->lisp_data));
          if (ext->Function == GIF_LOCAL_DESCRIPTOR_EXTENSION
              && ext->ByteCount == 4)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]