Skip to content

Commit 353f374

Browse files
authored
Fix undefined identifier in IndZero (#147)
1 parent 1c6ade4 commit 353f374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions/indZero.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function (::IndZero)(x)
1919
C = eltype(x)
2020
for k in eachindex(x)
2121
if x[k] != C(0)
22-
return R(Inf)
22+
return real(C)(Inf)
2323
end
2424
end
2525
return real(C)(0)

0 commit comments

Comments
 (0)