Mercurial > projects > ddmd
diff dmd/InlineDoState.d @ 90:39648eb578f6
more Expressions work
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 30 Aug 2010 20:27:56 +0100 |
parents | be2ab491772e |
children | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/InlineDoState.d Mon Aug 30 19:58:14 2010 +0400 +++ b/dmd/InlineDoState.d Mon Aug 30 20:27:56 2010 +0100 @@ -33,10 +33,8 @@ newa = new Expressions(); newa.setDim(a.dim); - for (int i = 0; i < a.dim; i++) + foreach (size_t i, Expression e; a) { - Expression e = cast(Expression)a.data[i]; - if (e) { e = e.doInline(ids);