Fix fill with char on older compilers

This commit is contained in:
Eugen Wissner 2017-05-05 07:03:16 +02:00
parent a6a6f496eb
commit 85d9361bfb
1 changed files with 4 additions and 1 deletions

View File

@ -928,7 +928,10 @@ struct String
}
body
{
fill(this.data[i .. j], value);
for (auto p = this.data + i; p < this.data + j; ++p)
{
*p = value;
}
return opSlice(i, j);
}