mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 14:10:30 +03:00
Pre-allocate 255 bytes, not 256, in buildPath()
...as recommended by @monarchdodra.
This commit is contained in:
parent
3e2574a001
commit
d6ce714d20
1 changed files with 1 additions and 1 deletions
|
@ -938,7 +938,7 @@ immutable(ElementEncodingType!(ElementType!Range))[]
|
|||
foreach (segment; segments2) precalc += segment.length + 1;
|
||||
}
|
||||
// Otherwise, just venture a guess and resize later if necessary.
|
||||
else size_t precalc = 256;
|
||||
else size_t precalc = 255;
|
||||
|
||||
auto buf = new Unqual!(ElementEncodingType!(ElementType!(Range)))[](precalc);
|
||||
size_t pos = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue