summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2025-10-28 23:16:05 +0100
committerjvoisin2025-10-28 23:16:05 +0100
commit05baf9cfe90c25b02652489c6dd75810600ead5e (patch)
tree8e5f1496adfd6626520f24383d51088a4b3d4c6a
parent8a43ce98138d363b6595a16b98b6016c5e306191 (diff)
Fix possible cast-mismatch spotted by `-Werror=cast-qual`
-rw-r--r--include/fortify-headers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fortify-headers.h b/include/fortify-headers.h
index b5c8bc0..a8f76cc 100644
--- a/include/fortify-headers.h
+++ b/include/fortify-headers.h
@@ -134,8 +134,8 @@
134 * since gcc seems to like to generate code that relies on dst == src */ 134 * since gcc seems to like to generate code that relies on dst == src */
135#define __fh_overlap(a, len_a, b, len_b) \ 135#define __fh_overlap(a, len_a, b, len_b) \
136 ( \ 136 ( \
137 ((char*)(a) < (char*)(b) && (char*)(b) < ((char*)(a) + (__fh_size_t)(len_a))) \ 137 ((const char*)(a) < (const char*)(b) && (const char*)(b) < ((const char*)(a) + (__fh_size_t)(len_a))) \
138 || ((char*)(b) < (char*)(a) && (char*)(a) < ((char*)(b) + (__fh_size_t)(len_b))) \ 138 || ((const char*)(b) < (const char*)(a) && (const char*)(a) < ((const char*)(b) + (__fh_size_t)(len_b))) \
139 ) 139 )
140 140
141/* 141/*