Skip to content

Commit f49c123

Browse files
committed
use isequal instead of ==
1 parent 832fbab commit f49c123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parameter_caches.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ end
1515

1616
# Prevent e.g. Inf - Inf = NaN
1717
function safe_diff(b, a::T) where {T}
18-
b == a ? zero(T) : b - a
18+
isequal(b, a) ? zero(T) : b - a
1919
end
2020

2121
function linear_interpolation_parameters(u::AbstractArray{T, N}, t, idx) where {T, N}

0 commit comments

Comments
 (0)