Skip to content

Commit

Permalink
unsigned conversion methods for JSON.Number
Browse files Browse the repository at this point in the history
  • Loading branch information
samoconnor committed Oct 14, 2018
1 parent b4cfab3 commit 8030760
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
julia 0.7-DEV.4592
julia 1.0
DataStructures
JSON
5 changes: 5 additions & 0 deletions src/Number.jl
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ Base.Int16(n::JSON.Number)::Int16 = Base.Number(n)
Base.Int32(n::JSON.Number)::Int32 = Base.Number(n)
Base.Int64(n::JSON.Number)::Int64 = Base.Number(n)
Base.Int128(n::JSON.Number)::Int128 = Base.Number(n)
Base.UInt8(n::JSON.Number)::UInt8 = Base.Number(n)
Base.UInt16(n::JSON.Number)::UInt16 = Base.Number(n)
Base.UInt32(n::JSON.Number)::UInt32 = Base.Number(n)
Base.UInt64(n::JSON.Number)::UInt64 = Base.Number(n)
Base.UInt128(n::JSON.Number)::UInt128 = Base.Number(n)
Base.BigInt(n::JSON.Number)::BigInt = Base.Number(n)
Base.Float64(n::JSON.Number)::Float64 = Base.Number(n)
Base.BigFloat(n::JSON.Number)::BigFloat = Base.Number(n)
Expand Down

0 comments on commit 8030760

Please sign in to comment.