Mercurial > projects > ddmd
diff dmd/StringExp.d @ 98:5c859d5fbe27
and more
author | Trass3r |
---|---|
date | Tue, 31 Aug 2010 03:53:49 +0200 |
parents | df6d0f967680 |
children | 6da99741178e |
line wrap: on
line diff
--- a/dmd/StringExp.d Tue Aug 31 02:12:15 2010 +0200 +++ b/dmd/StringExp.d Tue Aug 31 03:53:49 2010 +0200 @@ -344,8 +344,6 @@ * will result in a copy. * The this.string member is considered immutable. */ - StringExp se; - Type tb; int copied = 0; //printf("StringExp.castTo(t = %s), '%s' committed = %d\n", t.toChars(), toChars(), committed); @@ -355,7 +353,7 @@ error("cannot convert string literal to void*"); } - se = this; + StringExp se = this; if (!committed) { se = cast(StringExp)copy(); @@ -368,7 +366,7 @@ return se; } - tb = t.toBasetype(); + Type tb = t.toBasetype(); //printf("\ttype = %s\n", type.toChars()); if (tb.ty == TY.Tdelegate && type.toBasetype().ty != TY.Tdelegate) return Expression.castTo(sc, t);