mirror of
https://github.com/dlang/phobos.git
synced 2025-05-07 11:37:24 +03:00
[Issue 16073] Fix incorrect uses of random access range primitives in std.algorithm.iteration
This commit is contained in:
parent
fdabc1d93b
commit
a818c7e059
1 changed files with 1 additions and 1 deletions
|
@ -4562,7 +4562,7 @@ if (isInputRange!R && !isInfinite!R)
|
|||
static if (isRandomAccessRange!R && hasSlicing!R)
|
||||
{
|
||||
store[idx] = sumPairwise16!F(data);
|
||||
data = data[16 .. $];
|
||||
data = data[16 .. data.length];
|
||||
}
|
||||
else store[idx] = sumPairwiseN!(16, false, F)(data);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue