Skip to content

Commit

Permalink
Fix _interval_infsup ambiguities
Browse files Browse the repository at this point in the history
  • Loading branch information
lbenet committed Oct 12, 2024
1 parent cd97699 commit 47605eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/intervals/construction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ function _interval_infsup(::Type{T}, x::Union{BareInterval,Interval}, y::Union{B
return _unsafe_interval(z, min(decoration(x), decoration(y), decoration(z), d), t)
end
end
function _interval_infsup(::Type{T}, x::Union{BareInterval,Interval}, y, d::Decoration) where {T<:NumTypes}
function _interval_infsup(::Type{T}, x::Union{BareInterval,Interval}, y::NumTypes, d::Decoration) where {T<:NumTypes}
lo = _inf(x)
hi = _sup(y)
if !is_valid_interval(lo, hi) || d == ill
Expand All @@ -480,7 +480,7 @@ function _interval_infsup(::Type{T}, x::Union{BareInterval,Interval}, y, d::Deco
return _unsafe_interval(z, min(decoration(x), decoration(z), d), isguaranteed(x))
end
end
function _interval_infsup(::Type{T}, x, y::Union{BareInterval,Interval}, d::Decoration) where {T<:NumTypes}
function _interval_infsup(::Type{T}, x::NumTypes, y::Union{BareInterval,Interval}, d::Decoration) where {T<:NumTypes}
lo = _inf(x)
hi = _sup(y)
if !is_valid_interval(lo, hi) || d == ill
Expand Down

0 comments on commit 47605eb

Please sign in to comment.