Skip to content

Commit

Permalink
fix fptype, which now supports Int32 and Uint32
Browse files Browse the repository at this point in the history
  • Loading branch information
lindahua committed Aug 25, 2014
1 parent a2ba466 commit 6353c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ typealias RealFP Union(Float32, Float64)
## conversion from real to fp types

fptype{T<:Union(Float32,Bool,Int8,Uint8,Int16,Uint16)}(::Type{T}) = Float32
fptype{T<:Union(Float64,Int64,Uint64,Int128,Uint128)}(::Type{T}) = Float64
fptype{T<:Union(Float64,Int32,Uint32,Int64,Uint64,Int128,Uint128)}(::Type{T}) = Float64
fptype(::Type{Complex64}) = Complex64
fptype(::Type{Complex128}) = Complex128

0 comments on commit 6353c32

Please sign in to comment.