Merge pull request #255 from dawgfoto/Bug6652

fix fallout from Bug6652
This commit is contained in:
Andrei Alexandrescu 2011-09-13 21:04:41 -07:00
commit f7858581bb
3 changed files with 3 additions and 3 deletions

View file

@ -102,7 +102,7 @@ EmailStatus isEmail (Char) (const(Char)[] email, CheckDns checkDNS = CheckDns.no
auto endOrDie = false;
auto crlfCount = int.min; // int.min == not defined
foreach (i, e ; email)
foreach (ref i, e ; email)
{
token = email.get(i, e);

View file

@ -2135,7 +2135,7 @@ body
{
size_t ni; // current character in path
foreach (pi; 0 .. pattern.length)
foreach (ref pi; 0 .. pattern.length)
{
C pc = pattern[pi];
switch (pc)

View file

@ -437,7 +437,7 @@ string decode(string s, DecodeMode mode=DecodeMode.LOOSE)
if (mode == DecodeMode.NONE) return s;
char[] buffer;
foreach (i; 0 .. s.length)
foreach (ref i; 0 .. s.length)
{
char c = s[i];
if (c != '&')