From 3e09b67f762b35e6b6c2aa28e27930ce538ab6b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 31 Oct 2020 18:55:09 +0100 Subject: [PATCH] Fixes #169 ("flood of warnings building dlmalloc_ext_2_8_6.c on clang11") --- src/dlmalloc_2_8_6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dlmalloc_2_8_6.c b/src/dlmalloc_2_8_6.c index d09464d..9aa1e5a 100644 --- a/src/dlmalloc_2_8_6.c +++ b/src/dlmalloc_2_8_6.c @@ -2726,7 +2726,7 @@ static int has_segment_link(mstate m, msegmentptr ss) { noncontiguous segments are added. */ #define TOP_FOOT_SIZE\ - (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) + (align_offset(TWO_SIZE_T_SIZES)+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) /* ------------------------------- Hooks -------------------------------- */