Skip to content

Commit

Permalink
Fix deprecations (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
femtocleaner[bot] authored and Keno committed Jun 19, 2018
1 parent 8bfa7c2 commit 619ea0a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/FixedPointNumbers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 619ea0a

Please sign in to comment.