size_t l;
size_t outbufferpos = 0;
size_t outbuffermax = 0x100000;
- char *outbuffer = Z_Malloc(outbuffermax), *oldbuffer;
+ char *outbuffer = (char *) Z_Malloc(outbuffermax), *oldbuffer;
const msurface_t *surface;
const int maxtextures = 256;
- char *texturenames = Z_Malloc(maxtextures * MAX_QPATH);
+ char *texturenames = (char *) Z_Malloc(maxtextures * MAX_QPATH);
// construct the mtllib file
l = dpsnprintf(outbuffer + outbufferpos, outbuffermax - outbufferpos, "# mtllib for %s exported by darkplaces engine\n", originalfilename);
{
outbuffermax *= 2;
oldbuffer = outbuffer;
- outbuffer = Z_Malloc(outbuffermax);
+ outbuffer = (char *) Z_Malloc(outbuffermax);
memcpy(outbuffer, oldbuffer, outbufferpos);
Z_Free(oldbuffer);
}
{
outbuffermax *= 2;
oldbuffer = outbuffer;
- outbuffer = Z_Malloc(outbuffermax);
+ outbuffer = (char *) Z_Malloc(outbuffermax);
memcpy(outbuffer, oldbuffer, outbufferpos);
Z_Free(oldbuffer);
}
{
outbuffermax *= 2;
oldbuffer = outbuffer;
- outbuffer = Z_Malloc(outbuffermax);
+ outbuffer = (char *) Z_Malloc(outbuffermax);
memcpy(outbuffer, oldbuffer, outbufferpos);
Z_Free(oldbuffer);
}
size_t l;
size_t outbufferpos = 0;
size_t outbuffermax = 0x100000;
- char *outbuffer = Z_Malloc(outbuffermax), *oldbuffer;
+ char *outbuffer = (char *) Z_Malloc(outbuffermax), *oldbuffer;
const msurface_t *surface;
l = dpsnprintf(outbuffer + outbufferpos, outbuffermax - outbufferpos, "version 1\nnodes\n");
if (l > 0)
{
outbuffermax *= 2;
oldbuffer = outbuffer;
- outbuffer = Z_Malloc(outbuffermax);
+ outbuffer = (char *) Z_Malloc(outbuffermax);
memcpy(outbuffer, oldbuffer, outbufferpos);
Z_Free(oldbuffer);
}
{
outbuffermax *= 2;
oldbuffer = outbuffer;
- outbuffer = Z_Malloc(outbuffermax);
+ outbuffer = (char *) Z_Malloc(outbuffermax);
memcpy(outbuffer, oldbuffer, outbufferpos);
Z_Free(oldbuffer);
}
{
outbuffermax *= 2;
oldbuffer = outbuffer;
- outbuffer = Z_Malloc(outbuffermax);
+ outbuffer = (char *) Z_Malloc(outbuffermax);
memcpy(outbuffer, oldbuffer, outbufferpos);
Z_Free(oldbuffer);
}