Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Aug 1, 2024
1 parent 08e63d0 commit 5647e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ function _try_size(x::AbstractArray)
end
_try_size(x::Array) = size(x)

_checked_size(::Missing, ::Any) = false
_checked_size(x_size::Any, y::AbstractArray) = x_size == _try_size(y)
_checked_size(::Any, ::Any) = true
_checked_size(::Any, ::Tuple{}) = true
function _checked_size(x_size::Any, y::Tuple)
return _checked_size(x_size, y[1]) && _checked_size(x_size, Base.tail(y))
end
_checked_size(::Missing, ::Tuple) = false

# This method is a slightly tricky one:
#
Expand Down

0 comments on commit 5647e2d

Please sign in to comment.