Skip to content

Commit

Permalink
fix deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed May 26, 2017
1 parent ab9f8f8 commit f3e2fba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1354,9 +1354,8 @@ function hex2num(s::AbstractString)
return reinterpret(Float64, parse(UInt64, s, 16))
end

@deprecate num2hex(x::Union{Float16,Float32,Float64}) =
hex(reintepret(Unsigned, x), sizeof(x)*2)
@deprecate num2hex(n::Integer) = hex(n, sizeof(n)*2)
@deprecate num2hex(x::Union{Float16,Float32,Float64}) hex(reintepret(Unsigned, x), sizeof(x)*2)
@deprecate num2hex(n::Integer) hex(n, sizeof(n)*2)

# END 0.7 deprecations

Expand Down

0 comments on commit f3e2fba

Please sign in to comment.