Skip to content

Commit

Permalink
Fix macro syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Feb 23, 2022
1 parent d3885e5 commit 45d936c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EvaluateEquation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ macro return_on_check(val, T, n)
end

macro return_on_nonfinite_array(array, T, n)
:(if !isfinite(sum(ys -> ys * T(0), $(esc(array)))) # Other solution. *0 because of potential for overflow.
:(if !isfinite(sum(ys -> ys * $(esc(T))(0), $(esc(array)))) # Other solution. *0 because of potential for overflow.
return (Array{$(esc(T)), 1}(undef, $(esc(n))), false)
end)
end
Expand Down

0 comments on commit 45d936c

Please sign in to comment.