From 619ea0aa52d170458d73e885ba1558271a4e4c1a Mon Sep 17 00:00:00 2001 From: "femtocleaner[bot]" Date: Tue, 19 Jun 2018 19:13:52 -0400 Subject: [PATCH] Fix deprecations (#109) --- src/FixedPointNumbers.jl | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/FixedPointNumbers.jl b/src/FixedPointNumbers.jl index 9a8f6c0c..9b5a7f00 100644 --- a/src/FixedPointNumbers.jl +++ b/src/FixedPointNumbers.jl @@ -107,14 +107,12 @@ end const _log2_10 = 3.321928094887362 showcompact(io::IO, x::FixedPoint{T,f}) where {T,f} = show(io, round(convert(Float64,x), digits=ceil(Int,f/_log2_10))) -if VERSION >= v"0.7.0-DEV.1790" - function Base.showarg(io::IO, a::Array{T}, toplevel) where {T<:FixedPoint} - toplevel || print(io, "::") - print(io, "Array{") - showtype(io, T) - print(io, ",$(ndims(a))}") - toplevel && print(io, " with eltype ", T) - end +function Base.showarg(io::IO, a::Array{T}, toplevel) where {T<:FixedPoint} + toplevel || print(io, "::") + print(io, "Array{") + showtype(io, T) + print(io, ",$(ndims(a))}") + toplevel && print(io, " with eltype ", T) end include("fixed.jl")