1 --- copy 2012-01-24 11:29:27.790561756 -0800
2 +++ rdmd.d 2012-01-24 11:30:35.914955004 -0800
5 // Escape trailing backslashes, so they don't escape the ending quote.
6 // Backslashes elsewhere should NOT be escaped.
7 - for (int i=arg.length-1; i>=0 && arg[i]=='\\'; i--)
8 + for (int i=(cast(int)arg.length)-1; i>=0 && arg[i]=='\\'; i--)
10 return '"' ~ std.array.replace(arg, `"`, `\"`) ~ '"';