Mercurial > projects > ddmd
diff dmd/interpret/Util.d @ 79:43073c7c7769
updated to 2.035
also implemented a few missing functions
still crashes in Import.importAll though
author | Trass3r |
---|---|
date | Mon, 30 Aug 2010 03:57:51 +0200 |
parents | 7e0d548de9e6 |
children | be2ab491772e |
line wrap: on
line diff
--- a/dmd/interpret/Util.d Sun Aug 29 14:39:08 2010 +0100 +++ b/dmd/interpret/Util.d Mon Aug 30 03:57:51 2010 +0200 @@ -182,7 +182,7 @@ structelems.setDim(sym.fields.dim); for (size_t j = 0; j < structelems.dim; j++) { - structelems.data[j] = cast(void*)(cast(VarDeclaration)(sym.fields.data[j])).type.defaultInit(Loc(0)); + structelems.data[j] = cast(void*)(cast(VarDeclaration)(sym.fields[j])).type.defaultInit(Loc(0)); } StructLiteralExp structinit = new StructLiteralExp(loc, sym, structelems); // Why doesn't the StructLiteralExp constructor do this, when