Mercurial > projects > ddmd
diff dmd/TemplateValueParameter.d @ 113:3482c73a991b
More cleanup for arrays
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Tue, 31 Aug 2010 23:57:32 +0100 |
parents | 3a0b150c9841 |
children | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/TemplateValueParameter.d Wed Sep 01 00:14:27 2010 +0200 +++ b/dmd/TemplateValueParameter.d Tue Aug 31 23:57:32 2010 +0100 @@ -179,7 +179,7 @@ Object oarg; if (i < tiargs.dim) - oarg = cast(Object)tiargs.data[i]; + oarg = tiargs[i]; else { // Get default argument instead @@ -188,7 +188,7 @@ { assert(i < dedtypes.dim); // It might have already been deduced - oarg = cast(Object)dedtypes.data[i]; + oarg = dedtypes[i]; if (!oarg) goto Lnomatch; } @@ -227,9 +227,9 @@ if (!ei.equals(e)) goto Lnomatch; } - else if (dedtypes.data[i]) + else if (dedtypes[i]) { // Must match already deduced value - Expression e = cast(Expression)dedtypes.data[i]; + auto e = cast(Expression)dedtypes[i]; if (!ei || !ei.equals(e)) goto Lnomatch;