Skip to content

Commit 222bfd8

Browse files
authored
Improve performance in Fill addition (#371)
1 parent d0988b6 commit 222bfd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fillalgebra.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ end
471471

472472
@inline function fill_add(a::AbstractArray, b::AbstractFill)
473473
promote_shape(a, b)
474-
a .+ [getindex_value(b)]
474+
a .+ (getindex_value(b),)
475475
end
476476
@inline function fill_add(a::AbstractArray{<:Number}, b::AbstractFill)
477477
promote_shape(a, b)

0 commit comments

Comments
 (0)