comparison dmd/AnonDeclaration.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 ad4792a1cfd6
children be2ab491772e b17640f0e4e8
comparison
equal deleted inserted replaced
78:b98fa8a4bf04 79:43073c7c7769
132 132
133 // Add members of aad to ad 133 // Add members of aad to ad
134 //printf("\tadding members of aad to '%s'\n", ad.toChars()); 134 //printf("\tadding members of aad to '%s'\n", ad.toChars());
135 for (uint i = 0; i < aad.fields.dim; i++) 135 for (uint i = 0; i < aad.fields.dim; i++)
136 { 136 {
137 VarDeclaration v = cast(VarDeclaration)aad.fields.data[i]; 137 VarDeclaration v = cast(VarDeclaration)aad.fields[i];
138 138
139 v.offset += sc.offset; 139 v.offset += sc.offset;
140 ad.fields.push(cast(void*)v); 140 ad.fields.push(v);
141 } 141 }
142 142
143 // Add size of aad to ad 143 // Add size of aad to ad
144 if (adisunion) 144 if (adisunion)
145 { 145 {