Skip to content

Commit a89edbd

Browse files
authored
compare halfinteger exactly (#255)
1 parent 271f812 commit a89edbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ApproxFunOrthogonalPolynomials.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const TupleOrVector{T} = Union{Tuple{T,Vararg{T}},AbstractVector{<:T}}
132132

133133
# If any of the orders is an Integer, use == for an exact comparison, else fall back to isapprox
134134
# We assume that Integer orders are deliberately chosen to be exact
135-
compare_op(::Integer, args...) = ==
135+
compare_op(::Union{Integer, HalfInteger}, args...) = ==
136136
compare_op() =
137137
compare_op(::Any, args...) = compare_op(args...)
138138
compare_orders(a::Number, b::Number) = compare_op(a, b)(a, b)

0 commit comments

Comments
 (0)