-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Boundschecks for searchsorted & remove step(r::Range)==0 tests
1) Check bounds on the more low-level searchsorted* methods. Before an error like this was possible: ``` julia> searchsortedfirst([1:10], 5, -10, 7, Base.Order.Forward) zsh: segmentation fault (core dumped) ``` 2) Removes the step(r)==0 tests as ranges cannot have 0 steps (I think) Note that the low-level sort! methods also do not check bounds. Probably this should also be rectified.
- Loading branch information
Showing
2 changed files
with
13 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters