emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 8e78d49 5/5: Fix recently-introduced cast typo


From: Paul Eggert
Subject: [Emacs-diffs] master 8e78d49 5/5: Fix recently-introduced cast typo
Date: Tue, 12 Dec 2017 18:17:19 -0500 (EST)

branch: master
commit 8e78d49765993bbbb93d42b0530f5ffaa4e759f4
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    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 9197ff1..fb0f948 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))
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]