Skip to content

Commit

Permalink
Fix undefined identifier in IndZero (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
lostella authored Oct 27, 2023
1 parent 1c6ade4 commit 353f374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/indZero.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 353f374

Please sign in to comment.