Skip to content

Commit a2e24df

Browse files
authored
Explicitly qualify Base.Bool constructor (#121)
1 parent f45fb68 commit a2e24df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FixedPointDecimals.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ end
727727

728728
(::Type{T})(x::FD) where {T<:Union{AbstractFloat,Integer,Rational}} = convert(T, x)
729729
# Need to avoid ambiguity:
730-
Bool(x::FD) = convert(Bool, x)
730+
Base.Bool(x::FD) = convert(Bool, x)
731731

732732
Base.promote_rule(::Type{FD{T, f}}, ::Type{<:Integer}) where {T, f} = FD{T, f}
733733
Base.promote_rule(::Type{<:FD}, ::Type{TF}) where {TF <: AbstractFloat} = TF

0 commit comments

Comments
 (0)