mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
fix Issue 22146 - std.algorithm.searching.findAdjacent() can fall off end of function
This commit is contained in:
parent
1bdcf1f512
commit
3301a20c16
1 changed files with 1 additions and 0 deletions
|
@ -2630,6 +2630,7 @@ if (isForwardRange!(Range))
|
||||||
}
|
}
|
||||||
static if (!isInfinite!Range)
|
static if (!isInfinite!Range)
|
||||||
return ahead;
|
return ahead;
|
||||||
|
assert(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue