#include "lib/lib.h"
#include "lib/mempool.h"
-#include <stdlib.h>
#include <string.h>
struct memchunk {
{
if (s <= p->threshold)
{
- byte *x = (byte *)(((uns) p->free + POOL_ALIGN - 1) & ~(POOL_ALIGN - 1));
+ byte *x = (byte *)(((addr_int_t) p->free + POOL_ALIGN - 1) & ~(addr_int_t)(POOL_ALIGN - 1));
if (x + s > p->last)
{
struct memchunk *c;