Mercurial > projects > ddmd
diff dmd/ForeachStatement.d @ 12:832f71e6f96c
*Exp and *AssignExp arrayOp implementation added (might be a bit incomplete)
Some unittest-specific functions implemented
author | korDen |
---|---|
date | Mon, 12 Apr 2010 15:13:00 +0400 |
parents | 10317f0c89a5 |
children | a8b50ff7f201 |
line wrap: on
line diff
--- a/dmd/ForeachStatement.d Wed Mar 31 16:29:36 2010 +0400 +++ b/dmd/ForeachStatement.d Mon Apr 12 15:13:00 2010 +0400 @@ -654,7 +654,7 @@ case TY.Tdchar: flag += 2; break; } string r = (op == TOK.TOKforeach_reverse) ? "R" : ""; - int j = sprintf(fdname.ptr, "_aApply%*.s%.*s%ld".ptr, r, 2, fntab[flag].ptr, dim); + int j = sprintf(fdname.ptr, "_aApply%.*s%.*s%ld".ptr, r, 2, fntab[flag].ptr, dim); assert(j < fdname.sizeof); fdapply = FuncDeclaration.genCfunc(Type.tindex, fdname[0..j].idup);