Skip to content

Commit 619ea0a

Browse files
femtocleaner[bot]Keno
authored andcommitted
Fix deprecations (#109)
1 parent 8bfa7c2 commit 619ea0a

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/FixedPointNumbers.jl

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,12 @@ end
107107
const _log2_10 = 3.321928094887362
108108
showcompact(io::IO, x::FixedPoint{T,f}) where {T,f} = show(io, round(convert(Float64,x), digits=ceil(Int,f/_log2_10)))
109109

110-
if VERSION >= v"0.7.0-DEV.1790"
111-
function Base.showarg(io::IO, a::Array{T}, toplevel) where {T<:FixedPoint}
112-
toplevel || print(io, "::")
113-
print(io, "Array{")
114-
showtype(io, T)
115-
print(io, ",$(ndims(a))}")
116-
toplevel && print(io, " with eltype ", T)
117-
end
110+
function Base.showarg(io::IO, a::Array{T}, toplevel) where {T<:FixedPoint}
111+
toplevel || print(io, "::")
112+
print(io, "Array{")
113+
showtype(io, T)
114+
print(io, ",$(ndims(a))}")
115+
toplevel && print(io, " with eltype ", T)
118116
end
119117

120118
include("fixed.jl")

0 commit comments

Comments
 (0)