Mercurial > projects > ddmd
diff dmd/SwitchStatement.d @ 122:c77e9f4f1793
Statements -> Vector
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Thu, 02 Sep 2010 23:37:49 +0100 |
parents | e28b18c23469 |
children | af1bebfd96a4 |
line wrap: on
line diff
--- a/dmd/SwitchStatement.d Thu Sep 02 22:41:12 2010 +0100 +++ b/dmd/SwitchStatement.d Thu Sep 02 23:37:49 2010 +0100 @@ -167,10 +167,10 @@ } a.reserve(4); - a.push(cast(void*)body_); - a.push(cast(void*)new BreakStatement(loc, null)); + a.push(body_); + a.push(new BreakStatement(loc, null)); sc.sw.sdefault = new DefaultStatement(loc, s); - a.push(cast(void*)sc.sw.sdefault); + a.push(sc.sw.sdefault); cs = new CompoundStatement(loc, a); body_ = cs; }