Mercurial > projects > ddmd
diff dmd/StructLiteralExp.d @ 85:8e69d041a99d
Previous commit didn't compile. Fixed.
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 30 Aug 2010 16:16:30 +0100 |
parents | be2ab491772e |
children | 39648eb578f6 |
line wrap: on
line diff
--- a/dmd/StructLiteralExp.d Mon Aug 30 16:12:19 2010 +0100 +++ b/dmd/StructLiteralExp.d Mon Aug 30 16:16:30 2010 +0100 @@ -180,7 +180,7 @@ Expressions z = new Expressions; z.setDim(length); for (int q = 0; q < length; ++q) - z.data[q] = cast(void*) e.copy(); + z.data[q] = e.copy(); e = new ArrayLiteralExp(loc, z); e.type = type; } @@ -200,9 +200,8 @@ */ if (elements.dim) { - foreach (size_t i, Dsymbol s; sd.fields) + foreach (size_t i, VarDeclaration v; sd.fields) { - VarDeclaration v = s.isVarDeclaration(); assert(v); if (offset == v.offset && type.size() == v.type.size())