Mercurial > projects > ddmd
diff dmd/TypeSArray.d @ 113:3482c73a991b
More cleanup for arrays
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Tue, 31 Aug 2010 23:57:32 +0100 |
parents | 12c0c84d13fd |
children | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/TypeSArray.d Wed Sep 01 00:14:27 2010 +0200 +++ b/dmd/TypeSArray.d Tue Aug 31 23:57:32 2010 +0100 @@ -129,7 +129,7 @@ ///} ///t = cast(Type)o; - t = cast(Type)sd.objects.data[cast(size_t)d]; + t = cast(Type)sd.objects[cast(size_t)d]; if (t is null) { error(loc, "%s is not a type", toChars()); return Type.terror; @@ -257,7 +257,7 @@ error(loc, "tuple index %ju exceeds %u", d, td.objects.dim); goto Ldefault; } - Object o = cast(Object)td.objects.data[cast(size_t)d]; + Object o = td.objects[cast(size_t)d]; if ((*ps = isDsymbol(o)) !is null) /// ! { return; @@ -511,7 +511,7 @@ TemplateValueParameter tvp = tp2.isTemplateValueParameter(); if (!tvp) goto Lnomatch; - Expression e = cast(Expression)dedtypes.data[i]; + Expression e = cast(Expression)dedtypes[i]; if (e) { if (!dim.equals(e)) @@ -551,9 +551,9 @@ if (!tvp || !tvp.valType.isintegral()) goto Lnomatch; - if (dedtypes.data[i]) + if (dedtypes[i]) { - if (!dim.equals(cast(Object)dedtypes.data[i])) + if (!dim.equals(dedtypes[i])) goto Lnomatch; } else