Skip to content

Commit 1317d32

Browse files
committed
Use promote_type instead of Union
1 parent 9b2ef53 commit 1317d32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DAT/broadcast.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function Base.materialize(bc::Broadcast.Broadcasted{XStyle})
2020
intypes = (eltype.(args2)...,)
2121
@debug intypes
2222
outtypes = Base.return_types(bc.f, intypes)
23-
outtype = Union{outtypes...}
23+
outtype = Base.promote_type(outtypes...)
2424
@debug outtype
2525
return xmap(XFunction(bc.f; inplace=false), args2..., output=XOutput(; outtype))
2626
end

0 commit comments

Comments
 (0)