Mercurial > projects > ddmd
diff dmd/codegen/Util.d @ 113:3482c73a991b
More cleanup for arrays
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Tue, 31 Aug 2010 23:57:32 +0100 |
parents | 6da99741178e |
children | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/codegen/Util.d Wed Sep 01 00:14:27 2010 +0200 +++ b/dmd/codegen/Util.d Tue Aug 31 23:57:32 2010 +0100 @@ -728,13 +728,13 @@ { for (size_t i = 0; i < td.objects.dim; i++) { - auto o = cast(Object)td.objects.data[i]; + auto o = td.objects[i]; ///if (o.dyncast() == DYNCAST_EXPRESSION) - if (Expression eo = cast(Expression)o) + if (auto eo = cast(Expression)o) { if (eo.op == TOK.TOKdsymbol) { - DsymbolExp se = cast(DsymbolExp)eo; + auto se = cast(DsymbolExp)eo; e = el_combine(e, Dsymbol_toElem(se.s, irs)); } }