X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fmempool.h;h=d16fa6e09162abe44b14dd771c42e2ad49ecb3a8;hb=cff818411879583e66b6985b4179be0e9d4c525c;hp=efb5fa1bfe86e211570ba0e5caf5c8026e1cc238;hpb=47a0795e8a28e8ad6ff55cda89e300267d9e590c;p=libucw.git diff --git a/lib/mempool.h b/lib/mempool.h index efb5fa1b..d16fa6e0 100644 --- a/lib/mempool.h +++ b/lib/mempool.h @@ -30,7 +30,7 @@ void *mp_alloc_zero(struct mempool *, uns) LIKE_MALLOC; static inline void * LIKE_MALLOC mp_alloc_fast(struct mempool *p, uns l) { - byte *f = (void *) (((addr_int_t) p->free + POOL_ALIGN - 1) & ~(addr_int_t)(POOL_ALIGN - 1)); + byte *f = (void *) (((uintptr_t) p->free + POOL_ALIGN - 1) & ~(uintptr_t)(POOL_ALIGN - 1)); byte *ee = f + l; if (ee > p->last) return mp_alloc(p, l);