Navigation Menu

Skip to content

Commit

Permalink
Fixed stupid bug in stupid debug code. :)
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 22, 2011
1 parent 869cc7a commit ef4f34b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mojoshader_compiler.c
Expand Up @@ -2576,8 +2576,8 @@ FILE *io = stdout;
printf("%d PERFECT MATCH (%d/%d): ", ctx->sourceline, score, perfect);
if (dtfn->intrinsic)
printf("/* intrinsic */ ");
if (dt->function.retval)
print_ast_datatype(io, dt->function.retval);
if (dtfn->retval)
print_ast_datatype(io, dtfn->retval);
else
printf("void");
printf(" %s(", sym);
Expand All @@ -2601,8 +2601,8 @@ FILE *io = stdout;
printf("%d COMPATIBLE MATCH (%d/%d): ", ctx->sourceline, score, perfect);
if (dtfn->intrinsic)
printf("/* intrinsic */ ");
if (dt->function.retval)
print_ast_datatype(io, dt->function.retval);
if (dtfn->retval)
print_ast_datatype(io, dtfn->retval);
else
printf("void");
printf(" %s(", sym);
Expand Down

0 comments on commit ef4f34b

Please sign in to comment.