diff dmd/TypeSArray.d @ 121:347de076ad34

TemplateParameters -> Vector
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Thu, 02 Sep 2010 22:41:12 +0100
parents e28b18c23469
children 1765f3ef917d
line wrap: on
line diff
--- a/dmd/TypeSArray.d	Thu Sep 02 20:19:14 2010 +0100
+++ b/dmd/TypeSArray.d	Thu Sep 02 22:41:12 2010 +0100
@@ -508,7 +508,7 @@
 				// This code matches code in TypeInstance.deduceType()
 					if (i == -1)
 						goto Lnomatch;
-					TemplateParameter tp2 = cast(TemplateParameter)parameters.data[i];
+					auto tp2 = parameters[i];
 					TemplateValueParameter tvp = tp2.isTemplateValueParameter();
 					if (!tvp)
 						goto Lnomatch;
@@ -543,7 +543,7 @@
 
 						for (size_t i = 0; i < parameters.dim; i++)
 						{
-							auto tp2 = cast(TemplateParameter)parameters.data[i];
+							auto tp2 = parameters[i];
 
 							if (tp2.ident.equals(id))
 							{