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.7.0~101 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=86807b33d6c18e0236834269bd2cf87ed1b37cb2;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 ::stable-branch::merge=47f6d57940bdc80a475944198b7d50315e272746 --- 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);