emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/src/lisp.h


From: Ken Raeburn
Subject: [Emacs-diffs] Changes to emacs/src/lisp.h
Date: Sun, 05 Feb 2006 12:21:09 +0000

Index: emacs/src/lisp.h
diff -u emacs/src/lisp.h:1.547 emacs/src/lisp.h:1.548
--- emacs/src/lisp.h:1.547      Sun Dec 11 15:35:51 2005
+++ emacs/src/lisp.h    Sun Feb  5 12:21:09 2006
@@ -484,7 +484,11 @@
    in a Lisp object whose data type says it points to something.  */
 #define XPNTR(a) (XUINT (a) | DATA_SEG_BITS)
 #else
-#define XPNTR(a) XUINT (a)
+/* Some versions of gcc seem to consider the bitfield width when
+   issuing the "cast to pointer from integer of different size"
+   warning, so the cast is here to widen the value back to its natural
+   size.  */
+#define XPNTR(a) ((EMACS_INT) XUINT (a))
 #endif
 #endif /* not HAVE_SHM */
 #endif /* no XPNTR */




reply via email to

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