You still need the cast to compile :)
authorAntoine Cellerier <dionoea@videolan.org>
Thu, 17 Jan 2008 23:03:31 +0000 (23:03 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Thu, 17 Jan 2008 23:03:31 +0000 (23:03 +0000)
include/vlc_arrays.h

index dfc7e89..580bbd0 100644 (file)
@@ -303,7 +303,7 @@ static inline void vlc_array_clear( vlc_array_t * p_array )
 
 static inline vlc_array_t * vlc_array_new( void )
 {
-    vlc_array_t * ret = malloc( sizeof(vlc_array_t) );
+    vlc_array_t * ret = (vlc_array_t *)malloc( sizeof(vlc_array_t) );
     vlc_array_init( ret );
     return ret;
 }