Moved assignment into the scope where it's actually used.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 18 Jan 2011 13:44:52 -0800
changeset 982 97d3ff546b26
parent 981 bfcdebd39e5b
child 983 665e2d8bd7de
Moved assignment into the scope where it's actually used.
mojoshader_compiler.c
--- a/mojoshader_compiler.c	Tue Jan 18 10:42:25 2011 -0800
+++ b/mojoshader_compiler.c	Tue Jan 18 13:44:52 2011 -0800
@@ -2208,7 +2208,6 @@
         //          needs to match:
         //          short q = 2; fn(q);
         const MOJOSHADER_astDataTypeFunction *dtfn = (MOJOSHADER_astDataTypeFunction *) dt;
-        args = ast->args;
         int match = 1;
         int i;
 
@@ -2216,6 +2215,7 @@
             match = 0;
         else
         {
+            args = ast->args;
             for (i = 0; i < argcount; i++)
             {
                 assert(args != NULL);