Skip to content

Commit

Permalink
fix copypaste
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreySarnoff committed Aug 4, 2018
1 parent 2108b97 commit 8140e1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/float/arith.jl
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ end

# interact with Bool

@inline ArbFloat{P}(b::Bool) where {P} = b ? one(ArbComplex{P}) : zero(ArbComplex{P})
@inline ArbFloat{P}(b::Bool) where {P} = b ? one(ArbFloat{P}) : zero(ArbFloat{P})
@inline Base.Bool(x::ArbFloat{P}) where {P} = iszero(x) ? false : (isone(x) ? true : throw(InexactError("")))
@inline ArbReal{P}(b::Bool) where {P} = b ? one(ArbComplex{P}) : zero(ArbComplex{P})
@inline ArbReal{P}(b::Bool) where {P} = b ? one(ArbReal{P}) : zero(ArbReal{P})
@inline Base.Bool(x::ArbReal{P}) where {P} = iszero(x) ? false : (isone(x) ? true : throw(InexactError("")))
@inline ArbComplex{P}(b::Bool) where {P} = b ? one(ArbComplex{P}) : zero(ArbComplex{P})
@inline Base.Bool(x::ArbComplex{P}) where {P} = iszero(x) ? false : (isone(x) ? true : throw(InexactError("")))
Expand Down

0 comments on commit 8140e1f

Please sign in to comment.