Skip to content

Commit

Permalink
Moved assignment into the scope where it's actually used.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 18, 2011
1 parent 22c9b6a commit e70f4fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_compiler.c
Expand Up @@ -2208,14 +2208,14 @@ 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;

if (argcount != dtfn->num_params) // !!! FIXME: default args.
match = 0;
else
{
args = ast->args;
for (i = 0; i < argcount; i++)
{
assert(args != NULL);
Expand Down

0 comments on commit e70f4fa

Please sign in to comment.