]> mj.ucw.cz Git - libucw.git/blobdiff - lib/mempool.c
Updated all users of the timer interface to pass an explicit timer context.
[libucw.git] / lib / mempool.c
index af65b2856770199bf73e38320b34941d6716814a..fffbbd299651f95022e15d8bae4836c45753eb8b 100644 (file)
@@ -68,7 +68,7 @@ mp_alloc(struct mempool *p, uns s)
 {
   if (s <= p->threshold)
     {
-      byte *x = (byte *)(((addr_int_t) p->free + POOL_ALIGN - 1) & ~(addr_int_t)(POOL_ALIGN - 1));
+      byte *x = (byte *)(((uintptr_t) p->free + POOL_ALIGN - 1) & ~(uintptr_t)(POOL_ALIGN - 1));
       if (x + s > p->last)
        {
          struct memchunk *c;