strm.next_in = (unsigned char*)data;
strm.avail_in = size;
- tmp = Mem_Alloc(tempmempool, size);
+ tmp = (unsigned char *) Mem_Alloc(tempmempool, size);
if(!tmp)
{
Con_Printf("FS_Deflate: not enough memory in tempmempool!\n");
return NULL;
}
- out = Mem_Alloc(mempool, strm.total_out);
+ out = (unsigned char *) Mem_Alloc(mempool, strm.total_out);
if(!out)
{
Con_Printf("FS_Deflate: not enough memory in target mempool!\n");
unsigned char *olddata;
olddata = buf->data;
buf->maxsize += length;
- buf->data = Mem_Alloc(tempmempool, buf->maxsize);
+ buf->data = (unsigned char *) Mem_Alloc(tempmempool, buf->maxsize);
if(olddata)
{
memcpy(buf->data, olddata, oldsize);
sizebuf_t outbuf;
memset(&outbuf, 0, sizeof(outbuf));
- outbuf.data = Mem_Alloc(tempmempool, sizeof(tmp));
+ outbuf.data = (unsigned char *) Mem_Alloc(tempmempool, sizeof(tmp));
outbuf.maxsize = sizeof(tmp);
memset(&strm, 0, sizeof(strm));
qz_inflateEnd(&strm);
- out = Mem_Alloc(mempool, outbuf.cursize);
+ out = (unsigned char *) Mem_Alloc(mempool, outbuf.cursize);
if(!out)
{
Con_Printf("FS_Inflate: not enough memory in target mempool!\n");