Skip to content

Commit d1c6288

Browse files
andreasnoackc42f
authored andcommitted
Avoid calling promote_tuple_eltype in generated function (#671)
to fix issue with promotion of user defined types.
1 parent 4cfeb58 commit d1c6288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SArray.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ end
4646
@generated function (::Type{SArray{S}})(x::T) where {S <: Tuple, T <: Tuple}
4747
return quote
4848
@_inline_meta
49-
SArray{S, $(promote_tuple_eltype(T)), $(tuple_length(S)), $(tuple_prod(S))}(x)
49+
SArray{S, promote_tuple_eltype(T), $(tuple_length(S)), $(tuple_prod(S))}(x)
5050
end
5151
end
5252

0 commit comments

Comments
 (0)