emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 7818bcd: Port to platforms where NULL is a pointer


From: Paul Eggert
Subject: [Emacs-diffs] master 7818bcd: Port to platforms where NULL is a pointer
Date: Fri, 18 Jan 2019 16:04:16 -0500 (EST)

branch: master
commit 7818bcdd6cd6e2fbc0b0efb35d3bb6588752c5a4
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Port to platforms where NULL is a pointer
    
    * 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/image.c b/src/image.c
index e4b0975..bcc61df 100644
--- a/src/image.c
+++ b/src/image.c
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]