Skip to content

Commit 6353c32

Browse files
committed
fix fptype, which now supports Int32 and Uint32
1 parent a2ba466 commit 6353c32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ typealias RealFP Union(Float32, Float64)
2323
## conversion from real to fp types
2424

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

0 commit comments

Comments
 (0)