From 47f6d57940bdc80a475944198b7d50315e272746 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 20 Sep 2012 09:26:48 +0000 Subject: [PATCH] add a cast to fix compile error git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11849 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2