Commit 069b58b7 authored by Philipp Stephani's avatar Philipp Stephani

* src/alloc.c (mark_memory): Avoid signed integer overflow

parent 929e7e14
Pipeline #6199 failed with stage
in 61 minutes and 58 seconds
......@@ -4861,7 +4861,7 @@ mark_memory (void const *start, void const *end)
On a host with 32-bit pointers and 64-bit Lisp_Objects,
a Lisp_Object might be split into registers saved into
non-adjacent words and P might be the low-order word's value. */
p = (char *) ((intptr_t) p + (intptr_t) lispsym);
p = (char *) ((uintptr_t) p + (uintptr_t) lispsym);
mark_maybe_pointer (p);
verify (alignof (Lisp_Object) % GC_POINTER_ALIGNMENT == 0);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment