diff --git a/src/functions/indZero.jl b/src/functions/indZero.jl index 427c1fc..8876bb5 100644 --- a/src/functions/indZero.jl +++ b/src/functions/indZero.jl @@ -19,7 +19,7 @@ function (::IndZero)(x) C = eltype(x) for k in eachindex(x) if x[k] != C(0) - return R(Inf) + return real(C)(Inf) end end return real(C)(0)