1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-23 18:47:57 +00:00

* image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash

when calling XpmCreatePixmapFromData.
This commit is contained in:
Paul Eggert 2011-01-22 20:33:12 -08:00
parent ce504ff0c9
commit f77fabaf6b
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
* image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
when calling XpmCreatePixmapFromData.
Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
* lisp.h (SSDATA): New macro.
All uses of (char *) SDATA (x) replaced with SSDATA (x),

View File

@ -3334,7 +3334,7 @@ x_create_bitmap_from_xpm_data (struct frame *f, const char **bits)
attrs.valuemask |= XpmColormap;
rc = XpmCreatePixmapFromData (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
bits, &bitmap, &mask, &attrs);
(char **) bits, &bitmap, &mask, &attrs);
if (rc != XpmSuccess)
{
XpmFreeAttributes (&attrs);