Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
new attempt.. this bit of code was not useful, it looks like.
[simgrid.git] / 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