diff --git a/base/linalg.jl b/base/linalg.jl index 981aed065aede..dcd4bd8452c8b 100644 --- a/base/linalg.jl +++ b/base/linalg.jl @@ -51,7 +51,7 @@ function norm{T}(x::AbstractVector{T}, p::Number) end end end - +norm{T<:Integer}(x::AbstractVector{T}, p::Number) = norm(float(x), p) norm(x::AbstractVector) = norm(x, 2) function norm(A::AbstractMatrix, p)