]> code.delx.au - gnu-emacs/commitdiff
Port to Ubuntu 16.04 --enable-gcc-warnings
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Apr 2016 20:38:38 +0000 (13:38 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Apr 2016 20:39:34 +0000 (13:39 -0700)
* src/image.c (gif_load) [HAVE_GIF]: Fix pointer signedness problem.

src/image.c

index e8418b840c60bbd6f525aeea68e8b585f2eb72db..b07c1815eaca6f4b102322ff835067ddc643cc83 100644 (file)
@@ -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)