Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
new attempt.. this bit of code was not useful, it looks like.
authorAugustin Degomme <adegomme@users.noreply.github.com>
Mon, 23 Aug 2021 20:45:56 +0000 (22:45 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Mon, 23 Aug 2021 20:45:56 +0000 (22:45 +0200)
src/xbt/mmalloc/mmprivate.h

index bca9acd..acd317b 100644 (file)
@@ -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