Skip to content

Commit 5436e9a

Browse files
committed
Another mid fix
1 parent d97d79b commit 5436e9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/intervals/arithmetic.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,8 @@ function mid(a::Interval{T}, α) where T
403403

404404
isempty(a) && return convert(T, NaN)
405405

406-
lo = (a.lo == -? nextfloat(-) : a.lo)
407-
hi = (a.hi == +? prevfloat(+) : a.hi)
406+
lo = (a.lo == -? nextfloat(T(-∞)) : a.lo)
407+
hi = (a.hi == +? prevfloat(T(+∞)) : a.hi)
408408

409409
β = convert(T, α)
410410

0 commit comments

Comments
 (0)