Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nsajko authored Jan 8, 2025
1 parent d09703e commit f179208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ end
Base.IteratorSize(::Type{T}) where {T<:Broadcasted} = Base.HasShape{ndims(T)}()
Base.ndims(BC::Type{<:Broadcasted{<:Any,Nothing}}) = _maxndims_broadcasted(BC)
function Base.ndims(BC::Type{<:Broadcasted{<:AbstractArrayStyle{N},Nothing}}) where {N}
if Any <: N
if (N isa Type) && (Any <: N)
_maxndims_broadcasted(BC)
else
let n = N::Int
Expand Down

0 comments on commit f179208

Please sign in to comment.