aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPhilipp Stephani2020-08-02 12:58:44 +0200
committerPhilipp Stephani2020-08-02 12:58:44 +0200
commit069b58b7c852b59f8ef7642e21db339626045671 (patch)
treed7a77ba992c107838e9207f34c50efbdd0d44f57 /src/alloc.c
parent929e7e141c5780e51173fda7d7fc5b73411e4465 (diff)
downloademacs-069b58b7c852b59f8ef7642e21db339626045671.tar.gz
emacs-069b58b7c852b59f8ef7642e21db339626045671.zip
* src/alloc.c (mark_memory): Avoid signed integer overflow
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c
index e139d8cf262..be293cca54a 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -4861,7 +4861,7 @@ mark_memory (void const *start, void const *end)
4861 On a host with 32-bit pointers and 64-bit Lisp_Objects, 4861 On a host with 32-bit pointers and 64-bit Lisp_Objects,
4862 a Lisp_Object might be split into registers saved into 4862 a Lisp_Object might be split into registers saved into
4863 non-adjacent words and P might be the low-order word's value. */ 4863 non-adjacent words and P might be the low-order word's value. */
4864 p = (char *) ((intptr_t) p + (intptr_t) lispsym); 4864 p = (char *) ((uintptr_t) p + (uintptr_t) lispsym);
4865 mark_maybe_pointer (p); 4865 mark_maybe_pointer (p);
4866 4866
4867 verify (alignof (Lisp_Object) % GC_POINTER_ALIGNMENT == 0); 4867 verify (alignof (Lisp_Object) % GC_POINTER_ALIGNMENT == 0);