Mercurial > projects > ddmd
diff dmd/SymOffExp.d @ 73:ef02e2e203c2
Updating to dmd2.033
author | korDen |
---|---|
date | Sat, 28 Aug 2010 19:42:41 +0400 |
parents | 2e2a5c3f943a |
children | 6da99741178e |
line wrap: on
line diff
--- a/dmd/SymOffExp.d Sat Aug 28 16:19:48 2010 +0200 +++ b/dmd/SymOffExp.d Sat Aug 28 19:42:41 2010 +0400 @@ -28,7 +28,7 @@ { uint offset; - this(Loc loc, Declaration var, uint offset, int hasOverloads = 0) + this(Loc loc, Declaration var, uint offset, bool hasOverloads = false) { super(loc, TOK.TOKsymoff, SymOffExp.sizeof, var, hasOverloads); @@ -136,7 +136,7 @@ static if (false) { printf("SymOffExp::castTo(this=%s, type=%s, t=%s)\n", toChars(), type.toChars(), t.toChars()); } - if (type == t && hasOverloads == 0) + if (type == t && !hasOverloads) return this; Expression e; @@ -199,7 +199,7 @@ { e = copy(); e.type = t; - (cast(SymOffExp)e).hasOverloads = 0; + (cast(SymOffExp)e).hasOverloads = false; } return e; }