Skip to content

Commit 443a1b6

Browse files
authored
relax type specification in the generic __normalize! (#41045)
1 parent a86e1d1 commit 443a1b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/LinearAlgebra/src/generic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ function normalize!(a::AbstractArray, p::Real=2)
17241724
__normalize!(a, nrm)
17251725
end
17261726

1727-
@inline function __normalize!(a::AbstractArray, nrm::AbstractFloat)
1727+
@inline function __normalize!(a::AbstractArray, nrm::Real)
17281728
# The largest positive floating point number whose inverse is less than infinity
17291729
δ = inv(prevfloat(typemax(nrm)))
17301730

0 commit comments

Comments
 (0)