From abb79bf33622b4e8407565ab8e82771b6a35945e Mon Sep 17 00:00:00 2001 From: Pip Cet Date: Sat, 23 May 2020 23:51:55 +0000 Subject: [PATCH] Accept unaligned pointers in maybe_lisp_pointer * src/alloc.c (maybe_lisp_pointer): Don't require pointers be aligned to a LISP_ALIGNMENT boundary, as this is false on mingw builds. --- src/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alloc.c b/src/alloc.c index 1c6b664b22..86e81cd1f6 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -4594,7 +4594,7 @@ mark_maybe_objects (Lisp_Object const *array, ptrdiff_t nelts) static bool maybe_lisp_pointer (void *p) { - return (uintptr_t) p % LISP_ALIGNMENT == 0; + return (uintptr_t) p % GC_ALIGNMENT == 0; } /* If P points to Lisp data, mark that as live if it isn't already -- 2.27.0.rc0