From: divverent Date: Thu, 20 Sep 2012 09:26:48 +0000 (+0000) Subject: add a cast to fix compile error X-Git-Tag: xonotic-v0.8.0~96^2~189 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=47f6d57940bdc80a475944198b7d50315e272746;p=xonotic%2Fdarkplaces.git add a cast to fix compile error git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11849 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_parse.c b/cl_parse.c index acacc542..506e53f3 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -1409,7 +1409,7 @@ static void CL_StopDownload(int size, int crc) { if(cls.caughtcsprogsdata) Mem_Free(cls.caughtcsprogsdata); - cls.caughtcsprogsdata = Mem_Alloc(cls.permanentmempool, cls.qw_downloadmemorycursize); + cls.caughtcsprogsdata = (unsigned char *) Mem_Alloc(cls.permanentmempool, cls.qw_downloadmemorycursize); memcpy(cls.caughtcsprogsdata, cls.qw_downloadmemory, cls.qw_downloadmemorycursize); cls.caughtcsprogsdatasize = cls.qw_downloadmemorycursize; Con_DPrintf("Buffered \"%s\"\n", name);