Cast a malloc() call to a specific pointer type.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 18 May 2013 20:08:03 -0400
changeset 57 7b46b27f8aa7
parent 56 ae6187c48b12
child 58 058686dc593f
Cast a malloc() call to a specific pointer type.
theoraplay.c
--- a/theoraplay.c	Sat May 18 20:07:49 2013 -0400
+++ b/theoraplay.c	Sat May 18 20:08:03 2013 -0400
@@ -627,7 +627,7 @@
         default: goto startdecode_failed;  // invalid/unsupported format.
     } // switch
 
-    ctx = malloc(sizeof (TheoraDecoder));
+    ctx = (TheoraDecoder *) malloc(sizeof (TheoraDecoder));
     if (ctx == NULL)
         goto startdecode_failed;