From: divverent Date: Tue, 18 Oct 2011 07:00:38 +0000 (+0000) Subject: fix one C++ compile error. It looks like we have no more wrong declaration of functio... X-Git-Tag: xonotic-v0.6.0~163^2~115 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bc33af16978d2aca67b4d0bf337bb35ebfff4a08;p=xonotic%2Fdarkplaces.git fix one C++ compile error. It looks like we have no more wrong declaration of function issues, as C++ name mangling should have detected them. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11442 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_sdl.c b/vid_sdl.c index 5eba5d05..f72abea1 100644 --- a/vid_sdl.c +++ b/vid_sdl.c @@ -1810,7 +1810,7 @@ static SDL_Surface *VID_WrapSDL_SetVideoMode(int screenwidth, int screenheight, // reallocate with malloc, as this is in tempmempool (do not want) xpm = data; - data = malloc(width * height * 4); + data = (char *) malloc(width * height * 4); memcpy(data, xpm, width * height * 4); Mem_Free(xpm); xpm = NULL;