void ConBuffer_Init(conbuffer_t *buf, int textsize, int maxlines, mempool_t *mempool)
{
buf->textsize = textsize;
- buf->text = Mem_Alloc(mempool, textsize);
+ buf->text = (char *) Mem_Alloc(mempool, textsize);
buf->maxlines = maxlines;
- buf->lines = Mem_Alloc(mempool, maxlines * sizeof(*buf->lines));
+ buf->lines = (con_lineinfo_t *) Mem_Alloc(mempool, maxlines * sizeof(*buf->lines));
buf->lines_first = 0;
buf->lines_count = 0;
}
if (i > 0)
{
// terencehill: insert the clipboard text between the characters of the line
- char *temp = Z_Malloc(MAX_INPUTLINE);
+ char *temp = (char *) Z_Malloc(MAX_INPUTLINE);
cbd[i]=0;
temp[0]=0;
if ( key_linepos < (int)strlen(key_line) )
int *firstsurfacefortexture;
int *numsurfacesfortexture;
if (!mod->sortedmodelsurfaces)
- mod->sortedmodelsurfaces = Mem_Alloc(loadmodel->mempool, mod->nummodelsurfaces * sizeof(*mod->sortedmodelsurfaces));
- firstsurfacefortexture = Mem_Alloc(tempmempool, mod->num_textures * sizeof(*firstsurfacefortexture));
- numsurfacesfortexture = Mem_Alloc(tempmempool, mod->num_textures * sizeof(*numsurfacesfortexture));
+ mod->sortedmodelsurfaces = (int *) Mem_Alloc(loadmodel->mempool, mod->nummodelsurfaces * sizeof(*mod->sortedmodelsurfaces));
+ firstsurfacefortexture = (int *) Mem_Alloc(tempmempool, mod->num_textures * sizeof(*firstsurfacefortexture));
+ numsurfacesfortexture = (int *) Mem_Alloc(tempmempool, mod->num_textures * sizeof(*numsurfacesfortexture));
memset(numsurfacesfortexture, 0, mod->num_textures * sizeof(*numsurfacesfortexture));
for (j = 0;j < mod->nummodelsurfaces;j++)
{