From e70f4fa1947a4531fb33334e5cc20d4f64a3e749 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 18 Jan 2011 13:44:52 -0800 Subject: [PATCH] Moved assignment into the scope where it's actually used. --- mojoshader_compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mojoshader_compiler.c b/mojoshader_compiler.c index c90990e7..bde8095c 100644 --- a/mojoshader_compiler.c +++ b/mojoshader_compiler.c @@ -2208,7 +2208,6 @@ static const MOJOSHADER_astDataType *match_func_to_call(Context *ctx, // 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 @@ static const MOJOSHADER_astDataType *match_func_to_call(Context *ctx, match = 0; else { + args = ast->args; for (i = 0; i < argcount; i++) { assert(args != NULL);