]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix recently-introduced cast typo
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Dec 2017 23:15:56 +0000 (15:15 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Dec 2017 23:17:12 +0000 (15:17 -0800)
* 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

index 9197ff12ef5e4c9dbc22bfd3081ee5e86c7eed2b..fb0f948474d45947a1e2b7638d6ef494cdd18d1c 100644 (file)
@@ -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))