Mercurial > projects > ddmd
changeset 36:3012e829306f
bad code translation bugs fixed
author | korDen |
---|---|
date | Sat, 21 Aug 2010 06:55:28 +0400 |
parents | 69494b249ace |
children | 38a17310d587 |
files | dmd/BoolExp.d dmd/TupleExp.d |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/dmd/BoolExp.d Sat Aug 21 05:51:06 2010 +0400 +++ b/dmd/BoolExp.d Sat Aug 21 06:55:28 2010 +0400 @@ -17,7 +17,7 @@ { this(Loc loc, Expression e, Type t) { - super(loc, TOK.init, 0, e); + super(loc, TOKtobool, BoolExp.sizeof, e); type = t; }
--- a/dmd/TupleExp.d Sat Aug 21 05:51:06 2010 +0400 +++ b/dmd/TupleExp.d Sat Aug 21 06:55:28 2010 +0400 @@ -74,14 +74,15 @@ this(Loc loc, Expressions exps) { - super(Loc(0), TOK.init, this.sizeof); + super(loc, TOKtuple, TupleExp.sizeof); + this.exps = exps; this.type = null; } this(Loc loc, TupleDeclaration tup) { - super(Loc(0), TOK.init, this.sizeof); + super(loc, TOKtuple, TupleExp.sizeof); exps = new Expressions(); type = null;