Fixed stupid bug in stupid debug code. :)
authorRyan C. Gordon <icculus@icculus.org>
Tue, 22 Feb 2011 02:50:48 -0500
changeset 998 8f82dca9a374
parent 997 a5f4e546b24e
child 999 1ac98e90b53e
Fixed stupid bug in stupid debug code. :)
mojoshader_compiler.c
--- a/mojoshader_compiler.c	Tue Feb 22 02:34:26 2011 -0500
+++ b/mojoshader_compiler.c	Tue Feb 22 02:50:48 2011 -0500
@@ -2576,8 +2576,8 @@
 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);
@@ -2601,8 +2601,8 @@
 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);