Skip to content

Commit d06bf7a

Browse files
committed
Use tuple constructor in fill.
Calling a StaticArray constructor with more than 15 arguments results in allocation due to limitations of Julia's type inference system. Going through `tuple` (as is also done elsewhere) avoids this.
1 parent 8ecb78a commit d06bf7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/arraymath.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ end
104104
return quote
105105
$(Expr(:meta, :inline))
106106
valT = convert($T, val)
107-
SA($(expr...))
107+
$(Expr(:call, SA, Expr(:tuple, expr...)))
108108
end
109109
end
110110

0 commit comments

Comments
 (0)