]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
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 acacc542d9270e7258c3106af0bea7e6f9bb3486..506e53f3c9907f8b0a9eddfafd67b0ec1a127042 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);