Skip to content

Conversation

@laborg
Copy link
Contributor

@laborg laborg commented Nov 11, 2019

Fixes #33808
findfirst assumed increasing step size for StepRange.

Copy link
Contributor

@raminammour raminammour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add:

isempty(r) && return nothing

Fixes things like:

julia> findfirst(==(2),1:-1:2)
0

@mbauman
Copy link
Member

mbauman commented Nov 12, 2019

Man, what's going on with CI? 6 ❌s, all different and seemingly unrelated!? Let's try that again.

@mbauman mbauman closed this Nov 12, 2019
@mbauman mbauman reopened this Nov 12, 2019
@JeffBezanson JeffBezanson merged commit 8333297 into JuliaLang:master Nov 13, 2019
JeffBezanson pushed a commit that referenced this pull request Nov 13, 2019
@KristofferC KristofferC mentioned this pull request Nov 15, 2019
19 tasks
@KristofferC KristofferC mentioned this pull request Dec 3, 2019
56 tasks
KristofferC pushed a commit that referenced this pull request Apr 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Buggy findfirst(p::Union{Fix2{typeof(==),T}, Fix2{typeof(isequal),T}}, r::StepRange{T,S}) where {T, S}?

6 participants