]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix a compiler warning in image.c.
authorEli Zaretskii <eliz@gnu.org>
Tue, 1 Feb 2011 19:46:21 +0000 (21:46 +0200)
committerEli Zaretskii <eliz@gnu.org>
Tue, 1 Feb 2011 19:46:21 +0000 (21:46 +0200)
 image.c (tiff_load): Avoid compiler warning in 2nd arg to TIFFClientOpen.

src/ChangeLog
src/image.c

index f46ea50d30c62ce612dee409ee49178cc3644d8f..7416530282429079c4f96824db838f54f064599f 100644 (file)
@@ -1,3 +1,8 @@
+2011-02-01  Eli Zaretskii  <eliz@gnu.org>
+
+       * image.c (tiff_load): Avoid compiler warning in 2nd arg to
+       TIFFClientOpen.
+
 2011-02-01  Jan Djärv  <jan.h.d@swipnet.se>
 
        * xsmfns.c (ice_connection_closed): Call delete_read_fd.
index 3b846bcc40039ed4adb8fd1713bbb41a0daa4316..8303fac4c98626ac70adf1a43a80849c687f853e 100644 (file)
@@ -6798,7 +6798,7 @@ tiff_load (struct frame *f, struct image *img)
       memsrc.len = SBYTES (specified_data);
       memsrc.index = 0;
 
-      tiff = fn_TIFFClientOpen ("memory_source", "r", &memsrc,
+      tiff = fn_TIFFClientOpen ("memory_source", "r", (thandle_t)&memsrc,
                                (TIFFReadWriteProc) tiff_read_from_memory,
                                (TIFFReadWriteProc) tiff_write_from_memory,
                                tiff_seek_in_memory,