]> mj.ucw.cz Git - libucw.git/blobdiff - lib/mempool.h
Fixxed test for ROLE=reap --> reap+watson
[libucw.git] / lib / mempool.h
index 7290c256f6865d61f0458e882ef04ad08fc5f5b5..98d46e57d620bdb8f4cb03816c90eec556f83eb5 100644 (file)
@@ -29,7 +29,7 @@ void *mp_alloc_zero(struct mempool *, uns);
 
 static inline void *mp_alloc_fast(struct mempool *p, uns l)
 {
-  byte *f = (void *) (((uns) p->free + POOL_ALIGN - 1) & ~(POOL_ALIGN - 1));
+  byte *f = (void *) (((addr_int_t) p->free + POOL_ALIGN - 1) & ~(addr_int_t)(POOL_ALIGN - 1));
   byte *ee = f + l;
   if (ee > p->last)
     return mp_alloc(p, l);