fix type cast
authorvortex <vortex@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 18 Feb 2012 10:04:23 +0000 (10:04 +0000)
committervortex <vortex@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 18 Feb 2012 10:04:23 +0000 (10:04 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11693 d7cf8633-e32d-0410-b094-e92efae38249

thread_sdl.c

index 9df9ffc..7c97cbd 100644 (file)
@@ -128,7 +128,7 @@ typedef struct {
 
 void *_Thread_CreateBarrier(unsigned int count, const char *filename, int fileline)
 {
-       barrier_t *b = 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