Skip to content

Commit

Permalink
restrict the new methods to homogeneous tuples only
Browse files Browse the repository at this point in the history
  • Loading branch information
nsajko authored Jan 19, 2025
1 parent e022f12 commit 692bcd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/anyall.jl
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ end

# When the function is side effect-free, we may avoid short-circuiting to help
# vectorize the loop.
function _any(::typeof(identity), itr::Tuple, ::Colon)
function _any(::typeof(identity), itr::NTuple, ::Colon)
@_terminates_locally_meta
r = false
anymissing = false
Expand Down Expand Up @@ -230,7 +230,7 @@ end

# When the function is side effect-free, we may avoid short-circuiting to help
# vectorize the loop.
function _all(::typeof(identity), itr::Tuple, ::Colon)
function _all(::typeof(identity), itr::NTuple, ::Colon)
@_terminates_locally_meta
r = true
anymissing = false
Expand Down

0 comments on commit 692bcd9

Please sign in to comment.