Skip to content

Commit 468892e

Browse files
committed
Fix Bool ambiguity
1 parent 09d107a commit 468892e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fixed_rational.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Rational(x::F) where {F<:FixedRational} = Rational{eltype(F)}(x)
6464
isinteger(x) || throw(InexactError(:convert, I, x))
6565
convert(I, div(x.num, denom(F)))
6666
end
67-
Bool(x::F) where {F<:FixedRational} =
67+
(::Type{Bool})(x::F) where {F<:FixedRational} =
6868
let
6969
iszero(x) || isone(x) || throw(InexactError(:convert, Bool, x))
7070
return x.num == denom(F)

0 commit comments

Comments
 (0)