updated on Tue Jan 24 20:03:59 UTC 2012
[aur-mirror.git] / rdmd / cast_fix_476.patch
blob9ca39cbbce7a60b6f2dc169dfbdbb873197b4971
1 --- copy 2012-01-24 11:29:27.790561756 -0800
2 +++ rdmd.d 2012-01-24 11:30:35.914955004 -0800
3 @@ -473,7 +473,7 @@
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--)
9 arg ~= '\\';
10 return '"' ~ std.array.replace(arg, `"`, `\"`) ~ '"';