Fixed C++ compiler error.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 03 Mar 2010 08:46:17 -0800
changeset 883 df6265a993bc
parent 882 dd526bab5a51
child 884 7d3aad1c2569
Fixed C++ compiler error.
mojoshader_compiler.c
--- 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; \