]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix type cast
authorvortex <vortex@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 18 Feb 2012 10:04:23 +0000 (10:04 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 20 Feb 2012 14:49:57 +0000 (15:49 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11693 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=dd52db86fdb87a94b3dbf861476c205ce8c980f7

thread_sdl.c

index 9df9ffc9ebfeac7c37677bb70717c717f3e63be3..7c97cbdf3734f1ce649f1f14f8b7270d650c4a09 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