]> git.eshelyaron.com Git - emacs.git/commitdiff
Port to platforms where NULL is a pointer
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 18 Jan 2019 21:03:47 +0000 (13:03 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 18 Jan 2019 21:04:09 +0000 (13:04 -0800)
* src/image.c (x_create_x_image_and_pixmap):
The Picture type is an integer, not a pointer.
Come to think of it, Picture is really XID, and as
far as I can tell, all-bits-one is the invalid XID,
not all-bits-zero.  However that is a bigger issue;
for now, this patch just unbreaks the build.

src/image.c

index e4b097588ad2c1e8bc49be703ed87615cc6bd58e..bcc61dfccdab25a5cacf6a7fece3aa8a7d239217 100644 (file)
@@ -2200,7 +2200,7 @@ x_create_x_image_and_pixmap (struct frame *f, int width, int height, int depth,
       else
         {
           image_error ("Specified image bit depth is not supported by XRender");
-          *picture = NULL;
+          *picture = 0;
         }
     }
 # endif