From: havoc Date: Sat, 23 Feb 2013 21:55:11 +0000 (+0000) Subject: fix C++ compile error X-Git-Tag: xonotic-v0.7.0~48 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3121b90a7af367c4b0b2de89242963001e58ff0c;p=xonotic%2Fdarkplaces.git fix C++ compile error git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11903 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=7026f9a17e16aa458a8feab67a903b4ce71b7adc --- diff --git a/cl_screen.c b/cl_screen.c index 126f8284..8458d2cf 100644 --- a/cl_screen.c +++ b/cl_screen.c @@ -1074,7 +1074,7 @@ static void R_TimeReport_EndFrame(void) cls.r_speeds_graph_current = 0; if (cls.r_speeds_graph_data) Mem_Free(cls.r_speeds_graph_data); - cls.r_speeds_graph_data = Mem_Alloc(cls.permanentmempool, cls.r_speeds_graph_length * sizeof(r_refdef.stats)); + cls.r_speeds_graph_data = (int *)Mem_Alloc(cls.permanentmempool, cls.r_speeds_graph_length * sizeof(r_refdef.stats)); // initialize the graph to have the current values throughout history graph_data = cls.r_speeds_graph_data; graph_length = cls.r_speeds_graph_length;