Mercurial > projects > ddmd
diff dmd/Parser.d @ 122:c77e9f4f1793
Statements -> Vector
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Thu, 02 Sep 2010 23:37:49 +0100 |
parents | 347de076ad34 |
children | 9e39c7de8438 |
line wrap: on
line diff
--- a/dmd/Parser.d Thu Sep 02 22:41:12 2010 +0100 +++ b/dmd/Parser.d Thu Sep 02 23:37:49 2010 +0100 @@ -3239,7 +3239,7 @@ foreach(Dsymbol d; a) { s = new DeclarationStatement(loc, d); - as.push(cast(void*)s); + as.push(s); } s = new CompoundDeclarationStatement(loc, as); } @@ -3312,7 +3312,7 @@ Statements statements = new Statements(); while (token.value != TOK.TOKrcurly && token.value != TOKeof) { - statements.push(cast(void*)parseStatement(ParseStatementFlags.PSsemi | ParseStatementFlags.PScurlyscope)); + statements.push(parseStatement(ParseStatementFlags.PSsemi | ParseStatementFlags.PScurlyscope)); } endloc = this.loc; s = new CompoundStatement(loc, statements); @@ -3664,7 +3664,7 @@ token.value != TOKeof && token.value != TOK.TOKrcurly) { - statements.push(cast(void*)parseStatement(ParseStatementFlags.PSsemi | ParseStatementFlags.PScurlyscope)); + statements.push(parseStatement(ParseStatementFlags.PSsemi | ParseStatementFlags.PScurlyscope)); } s = new CompoundStatement(loc, statements); s = new ScopeStatement(loc, s); @@ -3700,7 +3700,7 @@ token.value != TOKeof && token.value != TOK.TOKrcurly) { - statements.push(cast(void*)parseStatement(ParseStatementFlags.PSsemi | ParseStatementFlags.PScurlyscope)); + statements.push(parseStatement(ParseStatementFlags.PSsemi | ParseStatementFlags.PScurlyscope)); } s = new CompoundStatement(loc, statements); s = new ScopeStatement(loc, s); @@ -3945,7 +3945,7 @@ s = new LabelStatement(labelloc, label, s); label = null; } - statements.push(cast(void*)s); + statements.push(s); } nextToken(); continue;