We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c6ade4 commit 353f374Copy full SHA for 353f374
1 file changed
src/functions/indZero.jl
@@ -19,7 +19,7 @@ function (::IndZero)(x)
19
C = eltype(x)
20
for k in eachindex(x)
21
if x[k] != C(0)
22
- return R(Inf)
+ return real(C)(Inf)
23
end
24
25
return real(C)(0)
0 commit comments