Skip to content

Commit 9e95692

Browse files
committed
Update
1 parent 1456ac1 commit 9e95692

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ext/ReactantStructArraysExt.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ function Base.similar(
8181
bc::Broadcasted{StructArrayStyle{S,N}}, ::Type{ElType}
8282
) where {S<:AbstractReactantArrayStyle,N,ElType}
8383
bc′ = convert(Broadcasted{S}, bc)
84+
# It is possible that we have multiple broadcasted arguments
8485
alloc(::Type{T}) where {T} = (T <: Complex) ? similar(bc′, T) :
8586
(StructArrays.isnonemptystructtype(T) ?
8687
StructArrays.buildfromschema(alloc, T) :

0 commit comments

Comments
 (0)