summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/tanya/container/string.d5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/tanya/container/string.d b/source/tanya/container/string.d
index 490d766..be11492 100644
--- a/source/tanya/container/string.d
+++ b/source/tanya/container/string.d
@@ -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);
}