From 8e78d49765993bbbb93d42b0530f5ffaa4e759f4 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 12 Dec 2017 15:15:56 -0800 Subject: [PATCH] Fix recently-introduced cast typo * src/alloc.c (SDATA_OF_STRING): Put cast in right spot. This matters only if GC_CHECK_STRING_BYTES, which is sort of a coals-to-Newcastle situation if pointer bounds checking is also enabled. --- src/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alloc.c b/src/alloc.c index 9197ff12ef5..fb0f948474d 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -1727,7 +1727,7 @@ static EMACS_INT total_string_bytes; a pointer to the `u.data' member of its sdata structure; the structure starts at a constant offset in front of that. */ -#define SDATA_OF_STRING(S) ptr_bounds_init ((sdata *) ((S)->u.s.data \ +#define SDATA_OF_STRING(S) ((sdata *) ptr_bounds_init ((S)->u.s.data \ - SDATA_DATA_OFFSET)) -- 2.11.4.GIT