From 06895c40f9b3c5f418b5735bd26bed6584ce5a52 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Mon, 23 Aug 2021 22:45:56 +0200 Subject: [PATCH] new attempt.. this bit of code was not useful, it looks like. --- src/xbt/mmalloc/mmprivate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xbt/mmalloc/mmprivate.h b/src/xbt/mmalloc/mmprivate.h index bca9acddeb..acd317bdba 100644 --- a/src/xbt/mmalloc/mmprivate.h +++ b/src/xbt/mmalloc/mmprivate.h @@ -62,7 +62,7 @@ sign of the result is machine dependent for negative values, so force it to be treated as an unsigned int. */ -#define ADDR2UINT(addr) ((uintptr_t) ((char*) (addr) - (char*) NULL)) +#define ADDR2UINT(addr) ((uintptr_t) (addr)) #define RESIDUAL(addr,bsize) ((uintptr_t) (ADDR2UINT (addr) % (bsize))) /* Determine the amount of memory spanned by the initial heap table -- 2.20.1