]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix type cast
authorvortex <vortex@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 18 Feb 2012 10:05:58 +0000 (10:05 +0000)
committervortex <vortex@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 18 Feb 2012 10:05:58 +0000 (10:05 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11694 d7cf8633-e32d-0410-b094-e92efae38249

thread_sdl.c

index 7c97cbdf3734f1ce649f1f14f8b7270d650c4a09..ca729c35bfb0498383b0edeff17636246ea1aeb5 100644 (file)
@@ -128,7 +128,7 @@ typedef struct {
 
 void *_Thread_CreateBarrier(unsigned int count, const char *filename, int fileline)
 {
-       barrier_t *b = (barrier_t)Z_Malloc(sizeof(barrier_t));
+       barrier_t *b = (barrier_t *)Z_Malloc(sizeof(barrier_t));
 #ifdef THREADDEBUG
        Sys_PrintfToTerminal("%p barrier create(%d) %s:%i\n", b, count, filename, fileline);
 #endif