mojoshader_compiler.c
changeset 883 df6265a993bc
parent 868 8e2034c3f175
child 910 3ee487d85ecb
--- a/mojoshader_compiler.c	Wed Mar 03 08:24:13 2010 -0800
+++ b/mojoshader_compiler.c	Wed Mar 03 08:46:17 2010 -0800
@@ -673,7 +673,7 @@
 //  afterwards.
 
 #define NEW_AST_NODE(retval, cls, typ) \
-    cls *retval = Malloc(ctx, sizeof (cls)); \
+    cls *retval = (cls *) Malloc(ctx, sizeof (cls)); \
     do { \
         if (retval == NULL) { return NULL; } \
         retval->ast.type = typ; \