Skip to content

Commit

Permalink
relax type specification in the generic __normalize! (JuliaLang#41045)
Browse files Browse the repository at this point in the history
  • Loading branch information
GiggleLiu authored and Amit Shirodkar committed Jun 9, 2021
1 parent 71857d9 commit 2b97fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/LinearAlgebra/src/generic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1724,7 +1724,7 @@ function normalize!(a::AbstractArray, p::Real=2)
__normalize!(a, nrm)
end

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

Expand Down

0 comments on commit 2b97fda

Please sign in to comment.