Mercurial > projects > ddmd
diff dmd/Parser.d @ 110:12c0c84d13fd
merged in 2.036 changes
author | Trass3r |
---|---|
date | Tue, 31 Aug 2010 22:29:00 +0200 |
parents | acd69f84627e 3a0b150c9841 |
children | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/Parser.d Tue Aug 31 22:08:52 2010 +0200 +++ b/dmd/Parser.d Tue Aug 31 22:29:00 2010 +0200 @@ -1202,7 +1202,7 @@ if (isDeclaration(&token, 0, TOKreserved, null)) { // Template argument is a type Type ta = parseType(); - tiargs.push(cast(void*)ta); + tiargs.push(ta); } else { // Template argument is an expression @@ -1251,13 +1251,13 @@ decldefs.push(fd); auto tempdecl = new TemplateDeclaration(fd.loc, fd.ident, tpl, null, decldefs); tempdecl.literal = 1; // it's a template 'literal' - tiargs.push(cast(void*)tempdecl); + tiargs.push(tempdecl); goto L1; } } } - tiargs.push(cast(void*)ea); + tiargs.push(ea); } L1: if (token.value != TOKcomma) @@ -1310,7 +1310,7 @@ case TOKwchar: ta = Type.twchar; goto LabelX; case TOKdchar: ta = Type.tdchar; goto LabelX; LabelX: - tiargs.push(cast(void*)ta); + tiargs.push(ta); nextToken(); break; @@ -1336,7 +1336,7 @@ { // Template argument is an expression Expression ea = parsePrimaryExp(); - tiargs.push(cast(void*)ea); + tiargs.push(ea); break; }