add a cast to fix compile error
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 20 Sep 2012 09:26:48 +0000 (09:26 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 20 Sep 2012 09:26:48 +0000 (09:26 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11849 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c

index acacc54..506e53f 100644 (file)
@@ -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);