Skip to content

Commit

Permalink
[Issue 16073] Fix incorrect uses of random access range primitives in…
Browse files Browse the repository at this point in the history
… std.algorithm.iteration
  • Loading branch information
JackStouffer committed Jun 2, 2016
1 parent fdabc1d commit a818c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/algorithm/iteration.d
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a818c7e

Please sign in to comment.