diff dmd/LabelStatement.d @ 122:c77e9f4f1793

Statements -> Vector
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Thu, 02 Sep 2010 23:37:49 +0100
parents e28b18c23469
children e3afd1303184
line wrap: on
line diff
--- a/dmd/LabelStatement.d	Thu Sep 02 22:41:12 2010 +0100
+++ b/dmd/LabelStatement.d	Thu Sep 02 23:37:49 2010 +0100
@@ -77,12 +77,12 @@
 			if (a)
 			{
 				if (!a.dim)
-					a.push(cast(void*)new ExpStatement(loc, null));
+					a.push(new ExpStatement(loc, null));
 
-				Statement s = cast(Statement)a.data[0];
+				Statement s = a[0];
 
 				s = new LabelStatement(loc, ident, s);
-				a.data[0] = cast(void*)s;
+				a[0] = s;
 			}
 		}