aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorEli Zaretskii2021-07-11 18:22:51 +0300
committerEli Zaretskii2021-07-11 18:22:51 +0300
commit56c9ecc78a94a6154ecf3434ae8b40ce04d0a9ce (patch)
treea71eb16f7a7d0c388ef1ef8066c4fe465513852b /src/alloc.c
parent46f9949e1fc29489b02c31fa4f7620afe580be1b (diff)
downloademacs-56c9ecc78a94a6154ecf3434ae8b40ce04d0a9ce.tar.gz
emacs-56c9ecc78a94a6154ecf3434ae8b40ce04d0a9ce.zip
Fix compilation of the --with-wide-int configuration
* src/alloc.c (mark_maybe_pointer): Fix a recent change for WIDE_EMACS_INT builds. (Bug#49261)
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c
index b3668d21316..e3b038c51cd 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -4764,7 +4764,11 @@ mark_maybe_pointer (void *p, bool symbol_only)
4764 from Emacs source code, it can occur in some cases. To fix 4764 from Emacs source code, it can occur in some cases. To fix
4765 this problem, the pdumper code should grok non-initial 4765 this problem, the pdumper code should grok non-initial
4766 addresses, as the non-pdumper code does. */ 4766 addresses, as the non-pdumper code does. */
4767#ifdef WIDE_EMACS_INT
4768 uintptr_t mask = ~((uintptr_t) 0);
4769#else
4767 uintptr_t mask = VALMASK; 4770 uintptr_t mask = VALMASK;
4771#endif
4768 void *po = (void *) ((uintptr_t) p & mask); 4772 void *po = (void *) ((uintptr_t) p & mask);
4769 char *cp = p; 4773 char *cp = p;
4770 char *cpo = po; 4774 char *cpo = po;