Skip to content

Commit

Permalink
Fixed C++ compiler error.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 3, 2010
1 parent 3b7f26f commit f54ce88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_compiler.c
Expand Up @@ -673,7 +673,7 @@ static void destroy_usertypemap(Context *ctx)
// 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; \
Expand Down

0 comments on commit f54ce88

Please sign in to comment.