* src/image.c: Add cast to fix type clash
This commit is contained in:
commit
5c7d01a54e
2 changed files with 4 additions and 1 deletions
|
@ -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),
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue