Skip to content

Commit

Permalink
Use compact parametric syntax in base/u*.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloferz committed Feb 8, 2017
1 parent be21a97 commit 886da54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,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))
Expand Down

0 comments on commit 886da54

Please sign in to comment.