[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master c0788f0c476: * src/lisp.h (XUNTAG): Work on 32-bit --with-wide-in
From: |
Mattias Engdegård |
Subject: |
master c0788f0c476: * src/lisp.h (XUNTAG): Work on 32-bit --with-wide-int builds |
Date: |
Sat, 16 Sep 2023 12:42:20 -0400 (EDT) |
branch: master
commit c0788f0c476f094a91f7b20f41d0fe50b5b19f9d
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
* src/lisp.h (XUNTAG): Work on 32-bit --with-wide-int builds
This eliminates a compiler warning for that configuration
(see bug#65491).
---
src/lisp.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lisp.h b/src/lisp.h
index 35a88d9b238..e2271ef0546 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -810,8 +810,8 @@ INLINE void
/* Extract A's pointer value, assuming A's Lisp type is TYPE and the
extracted pointer's type is CTYPE *. */
-#define XUNTAG(a, type, ctype) ((ctype *) \
- ((uintptr_t) XLP (a) - LISP_WORD_TAG (type)))
+#define XUNTAG(a, type, ctype) \
+ ((ctype *) ((uintptr_t) XLP (a) - (uintptr_t) LISP_WORD_TAG (type)))
/* A forwarding pointer to a value. It uses a generic pointer to
avoid alignment bugs that could occur if it used a pointer to a
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master c0788f0c476: * src/lisp.h (XUNTAG): Work on 32-bit --with-wide-int builds,
Mattias Engdegård <=