Skip to content

Commit 4ad1c97

Browse files
committed
Restrict type of T
1 parent 8d0d8d9 commit 4ad1c97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/NonlinearSolveBase/src/utils.jl

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

107107
init_similar_array!!(x) = x
108108

109-
function init_similar_array!!(x::AbstractArray{<:T}) where {T}
109+
function init_similar_array!!(x::AbstractArray{<:T}) where {T <: Number}
110110
ArrayInterface.can_setindex(x) && fill!(x, T(0))
111111
return x
112112
end

0 commit comments

Comments
 (0)