From: Paul Eggert Date: Tue, 12 Dec 2017 23:15:56 +0000 (-0800) Subject: Fix recently-introduced cast typo X-Git-Tag: emacs-27.0.90~6038 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8e78d49765993bbbb93d42b0530f5ffaa4e759f4;p=emacs.git 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. --- 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))