]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix C++ compile error (missing cast)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 13 Nov 2011 02:39:46 +0000 (02:39 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 13 Nov 2011 02:39:46 +0000 (02:39 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11552 d7cf8633-e32d-0410-b094-e92efae38249

cl_demo.c

index 5ca4780ee4cdc8ac950572290db37f7b58c07e54..e60ac367d64fa0760c4a0d10a2c24ff652a0f8b2 100644 (file)
--- a/cl_demo.c
+++ b/cl_demo.c
@@ -510,7 +510,7 @@ static void CL_FinishTimeDemo (void)
                {
                        static benchmarkhistory_t *history = NULL;
                        if(!history)
-                               history = Z_Malloc(sizeof(*history) * atoi(com_argv[i + 1]));
+                               history = (benchmarkhistory_t *)Z_Malloc(sizeof(*history) * atoi(com_argv[i + 1]));
 
                        history[benchmark_runs - 1].frames = frames;
                        history[benchmark_runs - 1].time = time;