From d23df89472ae2721abdfbcaf46687efdd4c3890e Mon Sep 17 00:00:00 2001 From: Petr Vana Date: Tue, 24 May 2022 21:13:53 +0200 Subject: [PATCH] Update src/intervals/functions.jl Co-authored-by: lucaferranti <49938764+lucaferranti@users.noreply.github.com> --- src/intervals/functions.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intervals/functions.jl b/src/intervals/functions.jl index 731d7d2f5..be3de79c2 100644 --- a/src/intervals/functions.jl +++ b/src/intervals/functions.jl @@ -381,5 +381,5 @@ function mod(x::Interval, y::Real) @assert y > 0 "modulo is currently implemented only for a positive divisor." division = x / y fl = floor(division) - fl.lo < fl.hi ? 0..y : y * (division - fl) + fl.lo < fl.hi ? Interval(zero(y), y) : y * (division - fl) end