From 3d7d4bfdedfd32af85ffce99410759096779ca6e Mon Sep 17 00:00:00 2001 From: Pablo Zubieta Date: Sat, 4 Feb 2017 21:08:29 -0600 Subject: [PATCH] Use compact parametric syntax in base/u*.jl --- base/util.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/util.jl b/base/util.jl index 7617229a51b54e..be9f818d307655 100644 --- a/base/util.jl +++ b/base/util.jl @@ -535,7 +535,7 @@ the compiler for objects about to be discarded, the `securezero!` function will always be called. """ function securezero! end -@noinline securezero!{T<:Number}(a::AbstractArray{T}) = fill!(a, 0) +@noinline securezero!(a::AbstractArray{<:Number}) = fill!(a, 0) securezero!(s::String) = unsafe_securezero!(pointer(s), sizeof(s)) @noinline unsafe_securezero!{T}(p::Ptr{T}, len::Integer=1) = ccall(:memset, Ptr{T}, (Ptr{T}, Cint, Csize_t), p, 0, len*sizeof(T))