From: Augustin Degomme Date: Mon, 23 Aug 2021 20:45:56 +0000 (+0200) Subject: new attempt.. this bit of code was not useful, it looks like. X-Git-Tag: v3.29~126^2~4 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/06895c40f9b3c5f418b5735bd26bed6584ce5a52 new attempt.. this bit of code was not useful, it looks like. --- 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